PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
indexed_renderer.h
1/* Copyright (C) 2000,2001,2002 Sony Computer Entertainment America
2
3 This file is subject to the terms and conditions of the GNU Lesser
4 General Public License Version 2.1. See the file "COPYING" in the
5 main directory of this archive for more details. */
6
7#ifndef ps2gl_indexed_renderer_h
8#define ps2gl_indexed_renderer_h
9
10#include "ps2gl/base_renderer.h"
11
13protected:
14 cpu_vec_4 ConstantVertColor;
15
16public:
17 CIndexedRenderer(void* packet, int packetSize, CRendererProps caps, CRendererProps reqs,
18 int inQuadsPerVert, int outQuadsPerVert,
19 const char* name);
20
21 virtual void InitContext(GLenum primType, tU32 rcChanges, bool userRcChanged);
22 virtual void DrawIndexedArrays(CGeometryBlock& block);
23 virtual int GetPacketQwordSize(const CGeometryBlock& geometry);
25 virtual bool GetCachePackets(const CGeometryBlock& geometry);
26};
27
28#endif // ps2gl_indexed_renderer_h
virtual int GetPacketQwordSize(const CGeometryBlock &geometry)
virtual void DrawIndexedArrays(CGeometryBlock &block)
Draw arrays of vertices that are accessed by index (i.e., glDrawElements)
virtual void InitContext(GLenum primType, tU32 rcChanges, bool userRcChanged)
virtual CRendererProps GetRenderContextDeps()
virtual bool GetCachePackets(const CGeometryBlock &geometry)