1#ifndef ULT_RENDERER_INTERFACE_H_INCLUDED
2#define ULT_RENDERER_INTERFACE_H_INCLUDED
55 virtual void SetViewport(
int x,
int y,
int width,
int height) = 0;
62 float nearDist,
float farDist,
72 float nearDist,
float farDist
94 float posX,
float posY,
float posZ,
95 float lookX,
float lookY,
float lookZ,
96 float upX,
float upY,
float upZ
131 int width,
int height,
int numComponents,
138 const char* fileName,
200 unsigned int* indices,
int mAlpha
Definition RenderInterface.h:207
int mRed
Definition RenderInterface.h:207
virtual void DeleteTexture(Texture &handle)=0
virtual bool Initialize(const RenderParams *params)=0
CGprofile mPsProfile
Definition RenderInterface.h:213
virtual bool Enable(RenderState state)=0
virtual void TranslateMatrix(float x, float y, float z)=0
virtual void LoadIdentityMatrix()=0
bool mMultiTexSupport
Definition RenderInterface.h:208
CGcontext mCgContext
Definition RenderInterface.h:212
virtual void SetShaderParameter4f(ParameterHandle param, float x, float y, float z, float w)=0
virtual void Render(PrimitiveType type, VertexDescriptor *desc, char *vertexData, unsigned int *indices, int totalVertices, int totalIndices, int stride)=0
virtual void EndRendering()=0
virtual void Shutdown()=0
virtual bool LoadTexFromFile(const char *fileName, TextureType type, Texture *handle)=0
virtual void SetMatrix(const float *matrix)=0
CGprofile mVsProfile
Definition RenderInterface.h:213
virtual void SetAlphaFunc(AlphaState state, float val)=0
virtual bool CreateShaderFromFile(const char *vs, const char *ps, ShaderHandle *handle)=0
int mBlue
Definition RenderInterface.h:207
virtual void StartRendering(bool color, bool depth, bool stencil)=0
virtual void ApplyFilters(Texture &handle, FilterListPtr filters)=0
virtual void ResizeWindowOrtho(int left, int right, int bottom, int top, float nearDist, float farDist)=0
virtual void GetMatrix(MatrixType type, float *matrix)=0
virtual void SetShaderParameter2f(ParameterHandle param, float x, float y)=0
virtual void SetShaderParameter1f(ParameterHandle param, float val)=0
virtual void SetView(float posX, float posY, float posZ, float lookX, float lookY, float lookZ, float upX, float upY, float upZ)=0
virtual void SetClearColor(int r, int g, int b, int a)=0
RenderInterface()
Definition RenderInterface.cpp:6
virtual void SetupShaderParameter(const char *pname, ShaderHandle shader, ParameterHandle *param)=0
virtual void ResizeWindow(float fov, float nearDist, float farDist, int width, int height)=0
virtual void PushMatrix()=0
virtual bool CreateShaderFromMemory(const char *vsFile, const char *psFile, ShaderHandle *handle)=0
virtual void SetViewport(int x, int y, int width, int height)=0
bool mCubeMapSupport
Definition RenderInterface.h:208
int mGreen
Definition RenderInterface.h:207
RenderParams mParams
Definition RenderInterface.h:210
virtual void RotateMatrix(float angle, float x, float y, float z)=0
virtual void PopMatrix()=0
virtual bool SwitchMatrixType(MatrixType type)=0
virtual ~RenderInterface()
Definition RenderInterface.cpp:16
virtual void SetShaderParameter3f(ParameterHandle param, float x, float y, float z)=0
virtual void ApplyShader(ShaderHandle shader)=0
virtual bool LoadTexFromMemory(const char *name, char *fileData, int length, TextureType type, Texture *handle)=0
virtual bool ApplyTexture(int texUnit, Texture &handle)=0
virtual void SetShaderParameter1i(ParameterHandle param, float val)=0
virtual void MultiplyToCurrentMatrix(const float *m)=0
virtual bool AddEmptyTexture(const char *name, int width, int height, int numComponents, TextureType type, TextureFormat format, Texture *handle)=0
virtual bool Disable(RenderState state)=0
Definition VertexDescriptor.h:18
int ShaderHandle
Definition RenderInterface.h:25
RenderState
Definition RenderState.h:9
int ParameterHandle
Definition RenderInterface.h:27
PrimitiveType
Definition PrimitiveType.h:9
MatrixType
Definition MatrixType.h:9
AlphaState
Definition AlphaState.h:9
Handle< stTexture > Texture
Definition Texture.h:10
TextureType
Definition TextureType.h:8
FilterList * FilterListPtr
Definition FilterType.h:37
TextureFormat
Definition TextureFormat.h:8
Definition RenderParams.h:11