mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-29 23:42:38 +00:00
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
#pragma once
|
||
|
|
||
|
// this include must remain at the top of every CPP file
|
||
|
//#include "qcommon/q_math.h"
|
||
|
//#include "tr_headers.h"
|
||
|
|
||
|
// tr_QuickSprite.h: interface for the CQuickSprite class.
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
class CQuickSpriteSystem
|
||
|
{
|
||
|
private:
|
||
|
textureBundle_t *mTexBundle;
|
||
|
unsigned long mGLStateBits;
|
||
|
int mFogIndex;
|
||
|
qboolean mUseFog;
|
||
|
vec4_t mVerts[SHADER_MAX_VERTEXES];
|
||
|
unsigned int mIndexes[SHADER_MAX_VERTEXES]; // Ideally this would be static, cause it never changes
|
||
|
vec2_t mTextureCoords[SHADER_MAX_VERTEXES]; // Ideally this would be static, cause it never changes
|
||
|
vec2_t mFogTextureCoords[SHADER_MAX_VERTEXES];
|
||
|
unsigned long mColors[SHADER_MAX_VERTEXES];
|
||
|
int mNextVert;
|
||
|
|
||
|
void Flush(void);
|
||
|
|
||
|
public:
|
||
|
CQuickSpriteSystem();
|
||
|
virtual ~CQuickSpriteSystem();
|
||
|
|
||
|
void StartGroup(textureBundle_t *bundle, unsigned long glbits, int fogIndex = -1);
|
||
|
void EndGroup(void);
|
||
|
|
||
|
void Add(float *pointdata, color4ub_t color, vec2_t fog=NULL);
|
||
|
};
|
||
|
|
||
|
extern CQuickSpriteSystem SQuickSprite;
|