MRenderingContext

From MaratisWiki
Jump to: navigation, search


Contents

API

virtual MRenderingContext::~MRenderingContext(void)

virtual const char* MRenderingContext::getRendererVersion()=0

virtual void MRenderingContext::setOrthoView(float left, float right, float bottom, float top, float zNear, float zFar)=0

virtual void MRenderingContext::setPerspectiveView(float fov, float ratio, float zNear, float zFar)=0

virtual void MRenderingContext::setViewport(int x, int y, unsigned int width, unsigned int height)=0

virtual void MRenderingContext::clear(int buffer)=0

virtual void MRenderingContext::setClearColor(const MVector4 &color)=0

virtual void MRenderingContext::enableTexture(void)=0

virtual void MRenderingContext::disableTexture(void)=0

virtual void MRenderingContext::setTextureGenMode(M_TEX_GEN_MODES mode)=0

virtual void MRenderingContext::setTextureFilterMode(M_TEX_FILTER_MODES min, M_TEX_FILTER_MODES mag)=0

virtual void MRenderingContext::setTextureUWrapMode(M_WRAP_MODES wrap)=0

virtual void MRenderingContext::setTextureVWrapMode(M_WRAP_MODES wrap)=0

virtual void MRenderingContext::setTextureCombineMode(M_TEX_COMBINE_MODES combine)=0

virtual void MRenderingContext::bindTexture(unsigned int textureId, const unsigned int multitextureId=0)=0

virtual void MRenderingContext::createTexture(unsigned int *textureId)=0

virtual void MRenderingContext::deleteTexture(unsigned int *textureId)=0

virtual void MRenderingContext::sendTextureImage(MImage *image, bool mipMap, bool filter, bool compress)=0

virtual void MRenderingContext::texImage(unsigned int level, unsigned int width, unsigned int height, M_TYPES type, M_TEX_MODES mode, const void *pixels)=0

virtual void MRenderingContext::texSubImage(unsigned int level, int xoffset, int yoffset, unsigned int width, unsigned int height, M_TYPES type, M_TEX_MODES mode, const void *pixels)=0

virtual void MRenderingContext::generateMipMap(void)=0

virtual void MRenderingContext::getTexImage(unsigned int level, MImage *image)

virtual void MRenderingContext::createFrameBuffer(unsigned int *frameBufferId)=0

virtual void MRenderingContext::deleteFrameBuffer(unsigned int *frameBufferId)=0

virtual void MRenderingContext::bindFrameBuffer(unsigned int frameBufferId)=0

virtual void MRenderingContext::getCurrentFrameBuffer(unsigned int *frameBufferId)=0

virtual void MRenderingContext::attachFrameBufferTexture(M_FRAME_BUFFER_ATTACHMENT attachment, unsigned int textureId)=0

virtual void MRenderingContext::attachFrameBufferRB(M_FRAME_BUFFER_ATTACHMENT attachment, unsigned int renderBufferId)

virtual void MRenderingContext::setDrawingBuffers(M_FRAME_BUFFER_ATTACHMENT *buffers, unsigned int size)=0

virtual void MRenderingContext::createRenderBuffer(unsigned int *renderBufferId)

virtual void MRenderingContext::deleteRenderBuffer(unsigned int *renderBufferId)

virtual void MRenderingContext::bindRenderBuffer(unsigned int renderBufferId)

virtual void MRenderingContext::setRenderBuffer(M_RENDER_BUFFER_MODES mode, unsigned int width, unsigned int height)

virtual void MRenderingContext::createVertexShader(unsigned int *shaderId)=0

virtual void MRenderingContext::createPixelShader(unsigned int *shaderId)=0

virtual void MRenderingContext::deleteShader(unsigned int *shaderId)=0

virtual void MRenderingContext::sendShaderSource(unsigned int shaderId, const char *source)=0

virtual void MRenderingContext::bindFX(unsigned int fxId)=0

virtual void MRenderingContext::createFX(unsigned int *fxId, unsigned int vertexShaderId, unsigned int pixelShaderId)=0

virtual void MRenderingContext::updateFX(unsigned int fxId)=0

virtual void MRenderingContext::deleteFX(unsigned int *fxId)=0

virtual void MRenderingContext::sendUniformInt(unsigned int fxId, const char *name, int *values, const int count=1)=0

virtual void MRenderingContext::sendUniformFloat(unsigned int fxId, const char *name, float *value, const int count=1)=0

virtual void MRenderingContext::sendUniformVec2(unsigned int fxId, const char *name, float *values, const int count=1)=0

virtual void MRenderingContext::sendUniformVec3(unsigned int fxId, const char *name, float *values, const int count=1)=0

virtual void MRenderingContext::sendUniformVec4(unsigned int fxId, const char *name, float *values, const int count=1)=0

virtual void MRenderingContext::sendUniformMatrix(unsigned int fxId, const char *name, MMatrix4x4 *matrix, const int count=1, const bool transpose=false)=0

virtual void MRenderingContext::getAttribLocation(unsigned int fxId, const char *name, int *location)=0

virtual void MRenderingContext::createVBO(unsigned int *vboId)

virtual void MRenderingContext::deleteVBO(unsigned int *vboId)

virtual void MRenderingContext::bindVBO(M_VBO_TYPES type, unsigned int vboId)

virtual void MRenderingContext::setVBO(M_VBO_TYPES type, const void *data, unsigned int size, M_VBO_MODES mode)

virtual void MRenderingContext::setVBOSubData(M_VBO_TYPES type, unsigned int offset, const void *data, unsigned int size)

virtual void MRenderingContext::enableVertexArray(void)=0

virtual void MRenderingContext::enableColorArray(void)=0

virtual void MRenderingContext::enableNormalArray(void)=0

virtual void MRenderingContext::enableTexCoordArray(void)=0

virtual void MRenderingContext::enableAttribArray(unsigned int location)=0

virtual void MRenderingContext::disableVertexArray(void)=0

virtual void MRenderingContext::disableColorArray(void)=0

virtual void MRenderingContext::disableNormalArray(void)=0

virtual void MRenderingContext::disableTexCoordArray(void)=0

virtual void MRenderingContext::disableAttribArray(unsigned int location)=0

virtual void MRenderingContext::setVertexPointer(M_TYPES type, unsigned int components, const void *pointer)=0

virtual void MRenderingContext::setColorPointer(M_TYPES type, unsigned int components, const void *pointer)=0

virtual void MRenderingContext::setNormalPointer(M_TYPES type, const void *pointer)=0

virtual void MRenderingContext::setTexCoordPointer(M_TYPES type, unsigned int components, const void *pointer)=0

virtual void MRenderingContext::setAttribPointer(unsigned int location, M_TYPES type, unsigned int components, const void *pointer, const bool normalized=false)=0

virtual void MRenderingContext::drawArray(M_PRIMITIVE_TYPES type, unsigned int begin, unsigned int size)=0

virtual void MRenderingContext::drawElement(M_PRIMITIVE_TYPES type, unsigned int size, M_TYPES indicesType, const void *indices)=0

virtual void MRenderingContext::enableLineAntialiasing(void)=0

virtual void MRenderingContext::disableLineAntialiasing(void)=0

virtual void MRenderingContext::setMaterialDiffuse(const MVector4 &diffuse)=0

virtual void MRenderingContext::setMaterialSpecular(const MVector4 &specular)=0

virtual void MRenderingContext::setMaterialAmbient(const MVector4 &ambient)=0

virtual void MRenderingContext::setMaterialEmit(const MVector4 &emit)=0

virtual void MRenderingContext::setMaterialShininess(float shininess)=0

virtual void MRenderingContext::enableScissorTest(void)=0

virtual void MRenderingContext::disableScissorTest(void)=0

virtual void MRenderingContext::setScissor(int x, int y, unsigned int width, unsigned int height)=0

virtual void MRenderingContext::setColor(const MColor &color)=0

virtual void MRenderingContext::setColor3(const MVector3 &color)=0

virtual void MRenderingContext::setColor4(const MVector4 &color)=0

virtual void MRenderingContext::setColorMask(bool r, bool g, bool b, bool a)=0

virtual void MRenderingContext::setDepthMask(bool depth)=0

virtual void MRenderingContext::setAlphaTest(float value)=0

virtual void MRenderingContext::enableDepthTest(void)=0

virtual void MRenderingContext::disableDepthTest(void)=0

virtual void MRenderingContext::setDepthMode(M_DEPTH_MODES mode)=0

virtual void MRenderingContext::enableStencilTest(void)=0

virtual void MRenderingContext::disableStencilTest(void)=0

virtual void MRenderingContext::setStencilFunc(M_STENCIL_FUNCS func, int ref=0)

virtual void MRenderingContext::setStencilOp(M_STENCIL_OPS op)

virtual void MRenderingContext::enableCullFace(void)=0

virtual void MRenderingContext::disableCullFace(void)=0

virtual void MRenderingContext::setCullMode(M_CULL_MODES mode)=0

virtual void MRenderingContext::createQuery(unsigned int *queryId)

virtual void MRenderingContext::deleteQuery(unsigned int *queryId)

virtual void MRenderingContext::beginQuery(unsigned int queryId)

virtual void MRenderingContext::endQuery(void)

virtual void MRenderingContext::getQueryResult(unsigned int queryId, unsigned int *result)

virtual void MRenderingContext::loadIdentity(void)=0

virtual void MRenderingContext::setMatrixMode(M_MATRIX_MODES mode)=0

virtual void MRenderingContext::pushMatrix(void)=0

virtual void MRenderingContext::popMatrix(void)=0

virtual void MRenderingContext::multMatrix(const MMatrix4x4 *matrix)=0

virtual void MRenderingContext::translate(const MVector3 &position)=0

virtual void MRenderingContext::rotate(const MVector3 &axis, float angle)=0

virtual void MRenderingContext::scale(const MVector3 &scale)=0

virtual void MRenderingContext::getViewport(int *viewport)=0

virtual void MRenderingContext::getModelViewMatrix(MMatrix4x4 *matrix)=0

virtual void MRenderingContext::getProjectionMatrix(MMatrix4x4 *matrix)=0

virtual void MRenderingContext::getTextureMatrix(MMatrix4x4 *matrix)=0

virtual void MRenderingContext::enableFog(void)=0

virtual void MRenderingContext::disableFog(void)=0

virtual void MRenderingContext::setFogColor(const MVector3 &color)=0

virtual void MRenderingContext::setFogDistance(float min, float max)=0

virtual void MRenderingContext::getFogColor(MVector3 *color)=0

virtual void MRenderingContext::getFogDistance(float *min, float *max)=0

virtual void MRenderingContext::enableLighting(void)=0

virtual void MRenderingContext::disableLighting(void)=0

virtual void MRenderingContext::enableLight(unsigned int id)=0

virtual void MRenderingContext::disableLight(unsigned int id)=0

virtual void MRenderingContext::setLightPosition(unsigned int id, const MVector4 &position)=0

virtual void MRenderingContext::setLightDiffuse(unsigned int id, const MVector4 &diffuse)=0

virtual void MRenderingContext::setLightSpecular(unsigned int id, const MVector4 &specular)=0

virtual void MRenderingContext::setLightAmbient(unsigned int id, const MVector4 &ambient)=0

virtual void MRenderingContext::setLightAttenuation(unsigned int id, float constant, float linear, float quadratic)=0

virtual void MRenderingContext::setLightSpotDirection(unsigned int id, const MVector3 &direction)=0

virtual void MRenderingContext::setLightSpotAngle(unsigned int id, float angle)=0

virtual void MRenderingContext::setLightSpotExponent(unsigned int id, float exponent)=0

virtual void MRenderingContext::getLightPosition(unsigned int id, MVector4 *position)=0

virtual void MRenderingContext::getLightDiffuse(unsigned int id, MVector4 *diffuse)=0

virtual void MRenderingContext::getLightSpecular(unsigned int id, MVector4 *specular)=0

virtual void MRenderingContext::getLightAmbient(unsigned int id, MVector4 *ambient)=0

virtual void MRenderingContext::getLightAttenuation(unsigned int id, float *constant, float *linear, float *quadratic)=0

virtual void MRenderingContext::getLightSpotDirection(unsigned int id, MVector3 *direction)=0

virtual void MRenderingContext::getLightSpotAngle(unsigned int id, float *angle)=0

virtual void MRenderingContext::getLightSpotExponent(unsigned int id, float *exponent)=0

virtual void MRenderingContext::enableBlending(void)=0

virtual void MRenderingContext::disableBlending(void)=0

virtual void MRenderingContext::setBlendingMode(M_BLENDING_MODES mode)=0

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox