Commit 9c3e0d6b authored by nadro's avatar nadro

- Fixed issue with OpenGL MRTs indexed blending.

- Optimized OpenGL blending calls.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4782 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6c6be32c
This diff is collapsed.
......@@ -645,6 +645,7 @@ namespace video
{
public:
COpenGLCallBridge(COpenGLDriver* driver);
~COpenGLCallBridge();
// Alpha calls.
......@@ -654,10 +655,18 @@ namespace video
// Blending calls.
void setBlendEquation(GLenum mode);
void setBlendEquationIndexed(GLuint index, GLenum mode);
void setBlendFunc(GLenum source, GLenum destination);
void setBlendFuncIndexed(GLuint index, GLenum source, GLenum destination);
void setBlend(bool enable);
void setBlendIndexed(GLuint index, bool enable);
// Client state calls.
void setClientState(bool vertex, bool normal, bool color, bool texCoord0);
......@@ -686,7 +695,7 @@ namespace video
void setClientActiveTexture(GLenum texture);
void setTexture(u32 stage, bool fixedPipeline);
void setTexture(GLuint stage, bool fixedPipeline);
private:
COpenGLDriver* Driver;
......@@ -695,9 +704,11 @@ namespace video
GLclampf AlphaRef;
bool AlphaTest;
GLenum BlendSource;
GLenum BlendDestination;
bool Blend;
GLenum* BlendEquation;
GLenum* BlendSource;
GLenum* BlendDestination;
bool* Blend;
GLuint BlendIndexCount;
bool ClientStateVertex;
bool ClientStateNormal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment