Search
lxdream.org :: lxdream/src/pvr2/render.c
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 (13 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
nkeynes@100
     1
/**
nkeynes@100
     2
 * $Id: render.c,v 1.1 2006-02-15 13:11:46 nkeynes Exp $
nkeynes@100
     3
 *
nkeynes@100
     4
 * PVR2 Renderer support. This is where the real work happens.
nkeynes@100
     5
 *
nkeynes@100
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@100
     7
 *
nkeynes@100
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@100
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@100
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@100
    11
 * (at your option) any later version.
nkeynes@100
    12
 *
nkeynes@100
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@100
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@100
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@100
    16
 * GNU General Public License for more details.
nkeynes@100
    17
 */
nkeynes@100
    18
nkeynes@100
    19
#include "pvr2/pvr2.h"
nkeynes@100
    20
#include "asic.h"
nkeynes@100
    21
#include "dream.h"
nkeynes@100
    22
nkeynes@100
    23
extern uint32_t pvr2_frame_counter;
nkeynes@100
    24
nkeynes@100
    25
/**
nkeynes@100
    26
 * Render a complete scene into an OpenGL buffer.
nkeynes@100
    27
 * Note: this may need to be broken up eventually once timings are
nkeynes@100
    28
 * determined.
nkeynes@100
    29
 */
nkeynes@100
    30
void pvr2_render_scene( void )
nkeynes@100
    31
{
nkeynes@100
    32
    /* Actual rendering goes here :) */
nkeynes@100
    33
nkeynes@100
    34
    /* End of render event */
nkeynes@100
    35
    asic_event( EVENT_PVR_RENDER_DONE );
nkeynes@100
    36
    DEBUG( "Rendered frame %d", pvr2_frame_counter );
nkeynes@100
    37
}
.