.. index:: pair: class; EE::Graphics::RendererGLShader .. _doxid-class_e_e_1_1_graphics_1_1_renderer_g_l_shader: class EE::Graphics::RendererGLShader ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class RendererGLShader: public :ref:`EE::Graphics::Renderer` { public: // construction :target:`~RendererGLShader`(); // methods virtual void :target:`pushMatrix`(); virtual void :target:`popMatrix`(); virtual void :target:`loadIdentity`(); virtual void :target:`loadMatrixf`(const float* m); virtual void :target:`translatef`(float x, float y, float z); virtual void :target:`rotatef`(float angle, float x, float y, float z); virtual void :target:`scalef`(float x, float y, float z); virtual void :target:`matrixMode`(unsigned int mode); virtual void :target:`ortho`(float left, float right, float bottom, float top, float zNear, float zFar); virtual void :target:`lookAt`( float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ ); virtual void :target:`perspective`(float fovy, float aspect, float zNear, float zFar); virtual void :target:`frustum`(float left, float right, float bottom, float top, float near_val, float far_val); virtual void :target:`getCurrentMatrix`(unsigned int mode, float* m); virtual void :target:`multMatrixf`(const float* m); virtual unsigned int :target:`getCurrentMatrixMode`(); virtual int :target:`project`( float objx, float objy, float objz, const float modelMatrix[16], const float projMatrix[16], const int viewport[4], float* winx, float* winy, float* winz ); virtual int :target:`unProject`( float winx, float winy, float winz, const float modelMatrix[16], const float projMatrix[16], const int viewport[4], float* objx, float* objy, float* objz ); virtual bool :ref:`setTextureColorMode`(:ref:`Int32` mode); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`PixelFormat`; // methods static :ref:`GraphicsLibraryVersion` :ref:`glVersionFromString`(std::string glVersion); static std::string :ref:`graphicsLibraryVersionToString`(const :ref:`GraphicsLibraryVersion`& glVersion); static :ref:`GraphicsLibraryVersion` :ref:`getDefaultGraphicsLibraryVersion`(); static std::vector<:ref:`GraphicsLibraryVersion`> :ref:`getAvailableGraphicsLibraryVersions`(); static :ref:`Renderer`* :ref:`createSingleton`(:ref:`GraphicsLibraryVersion` ver); static :ref:`Renderer`* :ref:`createSingleton`(); static :ref:`Renderer`* :ref:`existsSingleton`(); static :ref:`Renderer`* :ref:`instance`(); static void :ref:`destroySingleton`(); virtual void :ref:`init`(); std::string :ref:`getVendor`(); std::string :ref:`getRenderer`(); std::string :ref:`getVersion`(); std::string :ref:`getShadingLanguageVersion`(); bool :ref:`isExtension`(const std::string& name); bool :ref:`isExtension`(:ref:`GraphicsLibraryExtension` name); bool :ref:`pointSpriteSupported`(); void :ref:`configurePointSprite`(); bool :ref:`shadersSupported`(); void :ref:`clear`(unsigned int mask); void :ref:`clearColor`(float red, float green, float blue, float alpha); void :ref:`scissor`(int x, int y, int width, int height); void :ref:`polygonMode`(unsigned int face, unsigned int mode); std::string :ref:`getExtensions`(); const char* :ref:`getString`(unsigned int name); void :ref:`drawArrays`(unsigned int mode, int first, int count); bool :ref:`drawSubpixelArrays`(unsigned int mode, int first, int count); bool :ref:`drawSubpixelFallbackArrays`(unsigned int mode, int first, int count); void :ref:`drawElements`(unsigned int mode, int count, unsigned int type, const void* indices); void :ref:`bindTexture`(unsigned int target, unsigned int texture); void :ref:`activeTexture`(unsigned int texture); void :ref:`clientActiveTextureImpl`(unsigned int texture); void :ref:`blendFunc`(unsigned int sfactor, unsigned int dfactor); void :ref:`blendFuncSeparate`(unsigned int sfactorRGB, unsigned int dfactorRGB, unsigned int sfactorAlpha, unsigned int dfactorAlpha); void :ref:`blendEquationSeparate`(unsigned int modeRGB, unsigned int modeAlpha); bool :ref:`bindFragDataLocationIndexed`(unsigned int program, unsigned int colorNumber, unsigned int index, const char* name); void :ref:`blitFrameBuffer`( int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, unsigned int mask, unsigned int filter ); void :ref:`viewport`(int x, int y, int width, int height); void :ref:`lineSmooth`(const bool& enable); void :ref:`lineWidth`(float width); void :ref:`lineSmooth`(); bool :ref:`isLineSmooth`(); void :ref:`polygonSmooth`(const bool& enable); void :ref:`polygonSmooth`(); bool :ref:`isPolygonSmooth`(); void :ref:`polygonMode`(const :ref:`PrimitiveFillMode`& Mode); void :ref:`polygonMode`(); void :ref:`pixelStorei`(unsigned int pname, int param); void :ref:`multisample`(bool enable); bool :ref:`isMultisample`(); :ref:`RendererGL`* :ref:`getRendererGL`(); RendererGL3* :ref:`getRendererGL3`(); RendererGL3CP* :ref:`getRendererGL3CP`(); RendererGLES2* :ref:`getRendererGLES2`(); virtual void :ref:`pointSize`(float size) = 0; virtual float :ref:`pointSize`() = 0; virtual void :ref:`clientActiveTexture`(unsigned int texture) = 0; virtual void :ref:`disable`(unsigned int cap); virtual void :ref:`enable`(unsigned int cap); virtual void :ref:`onContextChanged`(); virtual :ref:`GraphicsLibraryVersion` :ref:`version`() = 0; virtual std::string :ref:`versionStr`() = 0; virtual void :ref:`pushMatrix`() = 0; virtual void :ref:`popMatrix`() = 0; virtual void :ref:`loadIdentity`() = 0; virtual void :ref:`translatef`(float x, float y, float z) = 0; virtual void :ref:`rotatef`(float angle, float x, float y, float z) = 0; virtual void :ref:`scalef`(float x, float y, float z) = 0; virtual void :ref:`matrixMode`(unsigned int mode) = 0; virtual void :ref:`ortho`(float left, float right, float bottom, float top, float zNear, float zFar) = 0; virtual void :ref:`lookAt`( float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ ) = 0; virtual void :ref:`perspective`(float fovy, float aspect, float zNear, float zFar) = 0; virtual void :ref:`enableClientState`(unsigned int array) = 0; virtual void :ref:`disableClientState`(unsigned int array) = 0; virtual void :ref:`vertexPointer`(int size, unsigned int type, int stride, const void* pointer, unsigned int allocate) = 0; virtual void :ref:`colorPointer`(int size, unsigned int type, int stride, const void* pointer, unsigned int allocate) = 0; virtual void :ref:`texCoordPointer`(int size, unsigned int type, int stride, const void* pointer, unsigned int allocate) = 0; virtual void :ref:`setShader`(:ref:`ShaderProgram`* Shader); virtual bool :ref:`setTextureColorMode`(:ref:`Int32` mode); virtual void :ref:`clip2DPlaneEnable`(const :ref:`Int32`& x, const :ref:`Int32`& y, const :ref:`Int32`& Width, const :ref:`Int32`& Height) = 0; virtual void :ref:`clip2DPlaneDisable`() = 0; virtual void :ref:`multMatrixf`(const float* m) = 0; virtual void :ref:`clipPlane`(unsigned int plane, const double* equation) = 0; virtual void :ref:`loadMatrixf`(const float* m) = 0; virtual void :ref:`frustum`(float left, float right, float bottom, float top, float near_val, float far_val) = 0; virtual void :ref:`getCurrentMatrix`(unsigned int mode, float* m) = 0; virtual unsigned int :ref:`getCurrentMatrixMode`() = 0; void :ref:`getViewport`(int* viewport); virtual int :ref:`project`( float objx, float objy, float objz, const float modelMatrix[16], const float projMatrix[16], const int viewport[4], float* winx, float* winy, float* winz ) = 0; virtual int :ref:`unProject`( float winx, float winy, float winz, const float modelMatrix[16], const float projMatrix[16], const int viewport[4], float* objx, float* objy, float* objz ) = 0; :ref:`Vector3f` :ref:`projectCurrent`(const :ref:`Vector3f`& point); :ref:`Vector3f` :ref:`unProjectCurrent`(const :ref:`Vector3f`& point); void :ref:`stencilFunc`(unsigned int func, int ref, unsigned int mask); void :ref:`stencilOp`(unsigned int fail, unsigned int zfail, unsigned int zpass); void :ref:`stencilMask`(unsigned int mask); void :ref:`colorMask`(:ref:`Uint8` red, :ref:`Uint8` green, :ref:`Uint8` blue, :ref:`Uint8` alpha); void :ref:`getColorMask`(:ref:`Uint8` mask[4]) const; void :ref:`bindVertexArray`(unsigned int array); void :ref:`deleteVertexArrays`(int n, const unsigned int* arrays); void :ref:`genVertexArrays`(int n, unsigned int* arrays); void :ref:`genBuffers`(int n, unsigned int* buffers); void :ref:`deleteBuffers`(int n, const unsigned int* buffers); void :ref:`bindBuffer`(unsigned int target, unsigned int buffer); void :ref:`bufferData`(unsigned int target, :ref:`IntPtr` size, const void* data, unsigned int usage); void :ref:`bufferSubData`(unsigned int target, :ref:`IntPtr` offset, :ref:`IntPtr` size, const void* data); void :ref:`vertexAttribPointer`(unsigned int index, int size, unsigned int type, bool normalized, int stride, const void* pointer); void :ref:`enableVertexAttribArray`(unsigned int index); void :ref:`disableVertexAttribArray`(unsigned int index); unsigned int :ref:`createShader`(unsigned int type); void :ref:`deleteShader`(unsigned int shader); void :ref:`shaderSource`(unsigned int shader, int count, const char*const* strings, const int* lengths); void :ref:`compileShader`(unsigned int shader); void :ref:`getShaderiv`(unsigned int shader, unsigned int pname, int* params); void :ref:`getShaderInfoLog`(unsigned int shader, int maxLength, int* length, char* infoLog); unsigned int :ref:`createProgram`(); void :ref:`deleteProgram`(unsigned int program); void :ref:`attachShader`(unsigned int program, unsigned int shader); void :ref:`linkProgram`(unsigned int program); void :ref:`useProgram`(unsigned int program); void :ref:`getProgramiv`(unsigned int program, unsigned int pname, int* params); void :ref:`getProgramInfoLog`(unsigned int program, int maxLength, int* length, char* infoLog); int :ref:`getUniformLocation`(unsigned int program, const char* name); int :ref:`getAttribLocation`(unsigned int program, const char* name); void :ref:`uniform1i`(int location, int value); void :ref:`uniform1f`(int location, float value); void :ref:`uniform2fv`(int location, int count, const float* value); void :ref:`uniform3fv`(int location, int count, const float* value); void :ref:`uniform4f`(int location, float x, float y, float z, float w); void :ref:`uniform4fv`(int location, int count, const float* value); void :ref:`uniformMatrix4fv`(int location, int count, bool transpose, const float* value); void :ref:`compressedTexImage2D`( unsigned int target, int level, unsigned int internalFormat, int width, int height, int border, int imageSize, const void* data ); void :ref:`getCompressedTexImage`(unsigned int target, int level, void* pixels); bool :ref:`quadsSupported`() const; int :ref:`quadVertex`() const; :ref:`ClippingMask`* :ref:`getClippingMask`() const; void :ref:`genFramebuffers`(int n, unsigned int* framebuffers); void :ref:`deleteFramebuffers`(int n, const unsigned int* framebuffers); void :ref:`bindFramebuffer`(unsigned int target, unsigned int framebuffer); void :ref:`framebufferTexture2D`(unsigned int target, unsigned int attachment, unsigned int textarget, unsigned int texture, int level); void :ref:`genRenderbuffers`(int n, unsigned int* renderbuffers); void :ref:`deleteRenderbuffers`(int n, const unsigned int* renderbuffers); void :ref:`bindRenderbuffer`(unsigned int target, unsigned int renderbuffer); void :ref:`renderbufferStorage`(unsigned int target, unsigned int internalformat, int width, int height); void :ref:`framebufferRenderbuffer`(unsigned int target, unsigned int attachment, unsigned int renderbuffertarget, unsigned int renderbuffer); unsigned int :ref:`checkFramebufferStatus`(unsigned int target); void :ref:`discardFramebuffer`(unsigned int target, int numAttachments, const unsigned int* attachments); void* :ref:`getProcAddress`(std::string proc); void :ref:`readPixels`(int x, int y, unsigned int width, unsigned int height, void* pixels); bool :ref:`readPixels`( int x, int y, unsigned int width, unsigned int height, :ref:`PixelFormat` format, void* pixels, size_t stride ); :ref:`Color` :ref:`readPixel`(int x, int y); void :ref:`waitForIdle`(); .. _details-class_e_e_1_1_graphics_1_1_renderer_g_l_shader: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; setTextureColorMode .. _doxid-class_e_e_1_1_graphics_1_1_renderer_g_l_shader_1a418247e626347624f66c4ab5a56ff893: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool setTextureColorMode(:ref:`Int32` mode) Selects built-in texture sampling: normal RGBA (0), LCD R/G/B (1-3), or LCD mean (4).