29 #ifndef __RENDERER_H__
30 #define __RENDERER_H__
166 virtual void Init(
void ) = 0;
197 virtual void SetColor4(
float r,
float g,
float b,
float a ) = 0;
200 bool clip =
true,
float min_x = 0.0
f,
float min_y = 0.0
f,
float max_x = 640.0
f,
float max_y = 480.0
f ) = 0;
201 virtual void DrawStretchPic(
float x,
float y,
float w,
float h,
float s1,
float t1,
float s2,
float t2,
const idMaterial *material ) = 0;
224 virtual void BeginFrame(
int windowWidth,
int windowHeight ) = 0;
227 virtual void EndFrame(
int *frontEndMsec,
int *backEndMsec ) = 0;
252 virtual void UnCrop() = 0;
253 virtual void GetCardCaps(
bool &oldCard,
bool &nv10or20 ) = 0;
virtual bool IsOpenGLRunning(void) const =0
struct glconfig_s glconfig_t
virtual bool UploadImage(const char *imageName, const byte *data, int width, int height)=0
virtual void EndFrame(int *frontEndMsec, int *backEndMsec)=0
virtual void SetColor(const idVec4 &rgba)=0
virtual void FreeRenderWorld(idRenderWorld *rw)=0
virtual void ShutdownOpenGL(void)=0
virtual void DrawDemoPics()=0
bool anisotropicAvailable
bool textureEnvCombineAvailable
bool textureLODBiasAvailable
void R_ScreenshotFilename(int &lastNumber, const char *base, idStr &fileName)
virtual bool RegisterFont(const char *fontName, fontInfoEx_t &font)=0
bool depthBoundsTestAvailable
void R_LightProjectionMatrix(const idVec3 &origin, const idPlane &rearPlane, idVec4 mat[4])
virtual void DrawBigChar(int x, int y, int ch, const idMaterial *material)=0
virtual void GetGLSettings(int &width, int &height)=0
virtual void DrawSmallChar(int x, int y, int ch, const idMaterial *material)=0
virtual void Init(void)=0
virtual void BeginFrame(int windowWidth, int windowHeight)=0
fontInfo_t fontInfoMedium
bool sharedTexturePaletteAvailable
virtual void BeginLevelLoad(void)=0
const char * wgl_extensions_string
virtual void GlobalToNormalizedDeviceCoordinates(const idVec3 &global, idVec3 &ndc)=0
bool atiTwoSidedStencilAvailable
const int SMALLCHAR_WIDTH
virtual idRenderWorld * AllocRenderWorld(void)=0
float maxTextureAnisotropy
virtual void CaptureRenderToFile(const char *fileName, bool fixAlpha=false)=0
virtual bool IsFullScreen(void) const =0
virtual void CaptureRenderToImage(const char *imageName)=0
GLubyte GLubyte GLubyte GLubyte w
bool ARBVertexBufferObjectAvailable
const char * vendor_string
virtual void DrawSmallStringExt(int x, int y, const char *string, const idVec4 &setColor, bool forceColor, const idMaterial *material)=0
virtual void PrintMemInfo(MemInfo_t *mi)=0
bool multitextureAvailable
GLsizei GLsizei GLenum GLenum const GLvoid * data
bool ARBVertexProgramAvailable
bool twoSidedStencilAvailable
virtual int GetScreenWidth(void) const =0
bool registerCombinersAvailable
virtual void SetColor4(float r, float g, float b, float a)=0
const char * extensions_string
bool atiFragmentShaderAvailable
virtual int GetScreenHeight(void) const =0
virtual void InitOpenGL(void)=0
GLubyte GLubyte GLubyte a
virtual void DrawStretchPic(const idDrawVert *verts, const glIndex_t *indexes, int vertCount, int indexCount, const idMaterial *material, bool clip=true, float min_x=0.0f, float min_y=0.0f, float max_x=640.0f, float max_y=480.0f)=0
const int GLYPH_CHARSTART
GLenum GLsizei GLsizei height
const char * renderer_string
virtual void DrawBigStringExt(int x, int y, const char *string, const idVec4 &setColor, bool forceColor, const idMaterial *material)=0
virtual void EndLevelLoad(void)=0
GLdouble GLdouble GLdouble r
void R_RenderLightFrustum(const struct renderLight_s &renderLight, idPlane lightFrustum[6])
bool textureCompressionAvailable
const char * version_string
bool textureEnvAddAvailable
virtual void Shutdown(void)=0
const int SMALLCHAR_HEIGHT
const int GLYPHS_PER_FONT
idRenderSystem * renderSystem
virtual void GetCardCaps(bool &oldCard, bool &nv10or20)=0
virtual void CropRenderSize(int width, int height, bool makePowerOfTwo=false, bool forceDimensions=false)=0
virtual ~idRenderSystem()
bool textureNonPowerOfTwoAvailable
bool ARBFragmentProgramAvailable
virtual void TakeScreenshot(int width, int height, const char *fileName, int samples, struct renderView_s *ref)=0
virtual void DrawStretchTri(idVec2 p1, idVec2 p2, idVec2 p3, idVec2 t1, idVec2 t2, idVec2 t3, const idMaterial *material)=0
virtual void WriteDemoPics()=0