Search
lxdream.org :: lxdream/src/pvr2/render.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/render.c
changeset 100:995e42e96cc9
next103:9b9cfc5855e0
author nkeynes
date Wed Feb 15 13:11:50 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Split pvr2.c out to separate files for TA and renderer, minor renames
change pvrdma to use mem_copy_to_sh4
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/pvr2/render.c Wed Feb 15 13:11:50 2006 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +/**
1.5 + * $Id: render.c,v 1.1 2006-02-15 13:11:46 nkeynes Exp $
1.6 + *
1.7 + * PVR2 Renderer support. This is where the real work happens.
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#include "pvr2/pvr2.h"
1.23 +#include "asic.h"
1.24 +#include "dream.h"
1.25 +
1.26 +extern uint32_t pvr2_frame_counter;
1.27 +
1.28 +/**
1.29 + * Render a complete scene into an OpenGL buffer.
1.30 + * Note: this may need to be broken up eventually once timings are
1.31 + * determined.
1.32 + */
1.33 +void pvr2_render_scene( void )
1.34 +{
1.35 + /* Actual rendering goes here :) */
1.36 +
1.37 + /* End of render event */
1.38 + asic_event( EVENT_PVR_RENDER_DONE );
1.39 + DEBUG( "Rendered frame %d", pvr2_frame_counter );
1.40 +}
.