1#ifndef ULT_RENDERER_OPENGL_H_INCLUDED
2#define ULT_RENDERER_OPENGL_H_INCLUDED
34 virtual void SetViewport(
int x,
int y,
int width,
int height);
37 float nearDist,
float farDist,
43 float nearDist,
float farDist
55 float posX,
float posY,
float posZ,
56 float lookX,
float lookY,
float lookZ,
57 float upX,
float upY,
float upZ
59 virtual void SetMatrix(
const float* matrix);
64 virtual void RotateMatrix(
float angle,
float x,
float y,
float z);
75 int width,
int height,
int numComponents,
112 unsigned int* indices,
virtual void SetShaderParameter2f(ParameterHandle param, float x, float y)
Definition OpenGLRenderer.cpp:749
virtual bool Disable(RenderState state)
Definition OpenGLRenderer.cpp:295
virtual void SetShaderParameter1i(ParameterHandle param, float val)
Definition OpenGLRenderer.cpp:737
OpenGLRenderer()
Definition OpenGLRenderer.cpp:154
virtual void PopMatrix()
Definition OpenGLRenderer.cpp:400
bool mFboSupport
Definition OpenGLRenderer.h:120
virtual void GetMatrix(MatrixType type, float *matrix)
Definition OpenGLRenderer.cpp:370
virtual void DeleteTexture(Texture &handle)
Definition OpenGLRenderer.cpp:602
std::vector< GLSLParameter > mParameters
Definition OpenGLRenderer.h:125
virtual void ApplyFilters(Texture &handle, FilterListPtr filters)
Definition OpenGLRenderer.cpp:406
virtual void SetAlphaFunc(AlphaState state, float val)
Definition OpenGLRenderer.cpp:319
virtual void TranslateMatrix(float x, float y, float z)
Definition OpenGLRenderer.cpp:387
virtual bool ApplyTexture(int texUnit, Texture &handle)
Definition OpenGLRenderer.cpp:579
virtual void LoadIdentityMatrix()
Definition OpenGLRenderer.cpp:392
virtual void SetShaderParameter4f(ParameterHandle param, float x, float y, float z, float w)
Definition OpenGLRenderer.cpp:761
ResourceManager< GLTexture, Texture > * mTexManager
Definition OpenGLRenderer.h:122
VertexDescriptor * mCurrentDesc
Definition OpenGLRenderer.h:119
virtual bool SwitchMatrixType(MatrixType type)
Definition OpenGLRenderer.cpp:358
virtual void SetupShaderParameter(const char *pname, ShaderHandle shader, ParameterHandle *param)
Definition OpenGLRenderer.cpp:716
bool InitializeOS(const RenderParams *params)
Definition OpenGLRenderer.cpp:941
virtual void SetShaderParameter1f(ParameterHandle param, float val)
Definition OpenGLRenderer.cpp:743
GLuint mVbo
Definition OpenGLRenderer.h:121
virtual void SetView(float posX, float posY, float posZ, float lookX, float lookY, float lookZ, float upX, float upY, float upZ)
Definition OpenGLRenderer.cpp:334
GLuint mIbo
Definition OpenGLRenderer.h:121
bool mVboSupport
Definition OpenGLRenderer.h:120
void ShutdownOS()
Definition OpenGLRenderer.cpp:962
virtual void MultiplyToCurrentMatrix(const float *m)
Definition OpenGLRenderer.cpp:352
virtual void SetClearColor(int r, int g, int b, int a)
Definition OpenGLRenderer.cpp:236
virtual bool CreateShaderFromMemory(const char *vsFile, const char *psFile, ShaderHandle *handle)
Definition OpenGLRenderer.cpp:658
virtual void SetViewport(int x, int y, int width, int height)
Definition OpenGLRenderer.cpp:207
virtual bool CreateShaderFromFile(const char *vs, const char *ps, ShaderHandle *handle)
Definition OpenGLRenderer.cpp:608
virtual bool Enable(RenderState state)
Definition OpenGLRenderer.cpp:257
virtual void ResizeWindow(float fov, float nearDist, float farDist, int width, int height)
Definition OpenGLRenderer.cpp:211
virtual ~OpenGLRenderer()
Definition OpenGLRenderer.cpp:165
virtual void EndRendering()
Definition OpenGLRenderer.cpp:252
virtual bool LoadTexFromFile(const char *fileName, TextureType type, Texture *handle)
Definition OpenGLRenderer.cpp:497
void InitializeExtensions()
Definition OpenGLRenderer.cpp:966
virtual void RotateMatrix(float angle, float x, float y, float z)
Definition OpenGLRenderer.cpp:383
virtual void Render(PrimitiveType type, VertexDescriptor *desc, char *vertexData, unsigned int *indices, int totalVertices, int totalIndices, int stride)
Definition OpenGLRenderer.cpp:769
virtual void PushMatrix()
Definition OpenGLRenderer.cpp:396
virtual void SetMatrix(const float *matrix)
Definition OpenGLRenderer.cpp:346
virtual bool Initialize(const RenderParams *params)
Definition OpenGLRenderer.cpp:170
virtual void StartRendering(bool color, bool depth, bool stencil)
Definition OpenGLRenderer.cpp:244
bool mGlslSupport
Definition OpenGLRenderer.h:120
virtual void Shutdown()
Definition OpenGLRenderer.cpp:185
virtual void ResizeWindowOrtho(int left, int right, int bottom, int top, float nearDist, float farDist)
Definition OpenGLRenderer.cpp:223
std::vector< GLSLShader > mShaders
Definition OpenGLRenderer.h:124
virtual bool AddEmptyTexture(const char *name, int width, int height, int numComponents, TextureType type, TextureFormat format, Texture *handle)
Definition OpenGLRenderer.cpp:463
virtual void SetShaderParameter3f(ParameterHandle param, float x, float y, float z)
Definition OpenGLRenderer.cpp:755
virtual void ApplyShader(ShaderHandle shader)
Definition OpenGLRenderer.cpp:707
virtual bool LoadTexFromMemory(const char *name, char *fileData, int length, TextureType type, Texture *handle)
Definition OpenGLRenderer.cpp:536
RenderInterface()
Definition RenderInterface.cpp:6
Definition ResourceManager.h:17
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