nkeynes@100: /** nkeynes@100: * $Id: render.c,v 1.1 2006-02-15 13:11:46 nkeynes Exp $ nkeynes@100: * nkeynes@100: * PVR2 Renderer support. This is where the real work happens. nkeynes@100: * nkeynes@100: * Copyright (c) 2005 Nathan Keynes. nkeynes@100: * nkeynes@100: * This program is free software; you can redistribute it and/or modify nkeynes@100: * it under the terms of the GNU General Public License as published by nkeynes@100: * the Free Software Foundation; either version 2 of the License, or nkeynes@100: * (at your option) any later version. nkeynes@100: * nkeynes@100: * This program is distributed in the hope that it will be useful, nkeynes@100: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@100: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@100: * GNU General Public License for more details. nkeynes@100: */ nkeynes@100: nkeynes@100: #include "pvr2/pvr2.h" nkeynes@100: #include "asic.h" nkeynes@100: #include "dream.h" nkeynes@100: nkeynes@100: extern uint32_t pvr2_frame_counter; nkeynes@100: nkeynes@100: /** nkeynes@100: * Render a complete scene into an OpenGL buffer. nkeynes@100: * Note: this may need to be broken up eventually once timings are nkeynes@100: * determined. nkeynes@100: */ nkeynes@100: void pvr2_render_scene( void ) nkeynes@100: { nkeynes@100: /* Actual rendering goes here :) */ nkeynes@100: nkeynes@100: /* End of render event */ nkeynes@100: asic_event( EVENT_PVR_RENDER_DONE ); nkeynes@100: DEBUG( "Rendered frame %d", pvr2_frame_counter ); nkeynes@100: }