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.
...@@ -643,8 +643,9 @@ namespace video ...@@ -643,8 +643,9 @@ namespace video
class COpenGLCallBridge class COpenGLCallBridge
{ {
public: public:
COpenGLCallBridge(COpenGLDriver* driver); COpenGLCallBridge(COpenGLDriver* driver);
~COpenGLCallBridge();
// Alpha calls. // Alpha calls.
...@@ -654,10 +655,18 @@ namespace video ...@@ -654,10 +655,18 @@ namespace video
// Blending calls. // Blending calls.
void setBlendEquation(GLenum mode);
void setBlendEquationIndexed(GLuint index, GLenum mode);
void setBlendFunc(GLenum source, GLenum destination); void setBlendFunc(GLenum source, GLenum destination);
void setBlendFuncIndexed(GLuint index, GLenum source, GLenum destination);
void setBlend(bool enable); void setBlend(bool enable);
void setBlendIndexed(GLuint index, bool enable);
// Client state calls. // Client state calls.
void setClientState(bool vertex, bool normal, bool color, bool texCoord0); void setClientState(bool vertex, bool normal, bool color, bool texCoord0);
...@@ -686,7 +695,7 @@ namespace video ...@@ -686,7 +695,7 @@ namespace video
void setClientActiveTexture(GLenum texture); void setClientActiveTexture(GLenum texture);
void setTexture(u32 stage, bool fixedPipeline); void setTexture(GLuint stage, bool fixedPipeline);
private: private:
COpenGLDriver* Driver; COpenGLDriver* Driver;
...@@ -695,9 +704,11 @@ namespace video ...@@ -695,9 +704,11 @@ namespace video
GLclampf AlphaRef; GLclampf AlphaRef;
bool AlphaTest; bool AlphaTest;
GLenum BlendSource; GLenum* BlendEquation;
GLenum BlendDestination; GLenum* BlendSource;
bool Blend; GLenum* BlendDestination;
bool* Blend;
GLuint BlendIndexCount;
bool ClientStateVertex; bool ClientStateVertex;
bool ClientStateNormal; 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