Home | History | Annotate | Download | only in pixelflinger2

Lines Matching refs:iface

137 static gl_shader * ShaderCreate(const GGLInterface * iface, GLenum type)
139 GGL_GET_CONST_CONTEXT(ctx, iface);
176 static GLboolean ShaderCompile(const GGLInterface * iface, gl_shader * shader,
179 GGL_GET_CONST_CONTEXT(ctx, iface);
199 static void ShaderDelete(const GGLInterface * iface, gl_shader * shader)
222 static gl_shader_program * ShaderProgramCreate(const GGLInterface * iface)
224 GGL_GET_CONST_CONTEXT(ctx, iface);
249 static void ShaderAttach(const GGLInterface * iface, gl_shader_program * program,
540 static void ShaderUse(GGLInterface * iface, gl_shader_program * program)
542 GGL_GET_CONTEXT(ctx, iface);
544 SetShaderVerifyFunctions(iface);
557 ctx->PickRaster(iface);
559 ctx->PickScanLine(iface);
581 static void ShaderDetach(const GGLInterface * iface, gl_shader_program * program,
603 static void ShaderProgramDelete(GGLInterface * iface, gl_shader_program * program)
605 GGL_GET_CONTEXT(ctx, iface);
608 SetShaderVerifyFunctions(iface);
867 static void ShaderVerifyProcessVertex(const GGLInterface * iface, const VertexInput * input,
870 GGL_GET_CONST_CONTEXT(ctx, iface);
872 ShaderUse(const_cast<GGLInterface *>(iface), ctx->CurrentProgram);
873 if (ShaderVerifyProcessVertex != iface->ProcessVertex)
874 iface->ProcessVertex(iface, input, output);
878 static void ShaderVerifyDrawTriangle(const GGLInterface * iface, const VertexInput * v0,
881 GGL_GET_CONST_CONTEXT(ctx, iface);
883 ShaderUse(const_cast<GGLInterface *>(iface), ctx->CurrentProgram);
884 if (ShaderVerifyDrawTriangle != iface->DrawTriangle)
885 iface->DrawTriangle(iface, v0, v1, v2);
889 static void ShaderVerifyRasterTriangle(const GGLInterface * iface, const VertexOutput * v1,
892 GGL_GET_CONST_CONTEXT(ctx, iface);
894 ShaderUse(const_cast<GGLInterface *>(iface), ctx->CurrentProgram);
895 if (ShaderVerifyRasterTriangle != iface->RasterTriangle)
896 iface->RasterTriangle(iface, v1, v2, v3);
900 static void ShaderVerifyRasterTrapezoid(const GGLInterface * iface, const VertexOutput * tl,
904 GGL_GET_CONST_CONTEXT(ctx, iface);
906 ShaderUse(const_cast<GGLInterface *>(iface), ctx->CurrentProgram);
907 if (ShaderVerifyRasterTrapezoid != iface->RasterTrapezoid)
908 iface->RasterTrapezoid(iface, tl, tr, bl, br);
912 static void ShaderVerifyScanLine(const GGLInterface * iface, const VertexOutput * v1,
915 GGL_GET_CONST_CONTEXT(ctx, iface);
917 ShaderUse(const_cast<GGLInterface *>(iface), ctx->CurrentProgram);
918 if (ShaderVerifyScanLine != iface->ScanLine)
919 iface->ScanLine(iface, v1, v2);
924 void SetShaderVerifyFunctions(struct GGLInterface * iface)
926 iface->ProcessVertex = ShaderVerifyProcessVertex;
927 iface->DrawTriangle = ShaderVerifyDrawTriangle;
928 iface->RasterTriangle = ShaderVerifyRasterTriangle;
929 iface->RasterTrapezoid = ShaderVerifyRasterTrapezoid;
930 iface->ScanLine = ShaderVerifyScanLine;
933 void InitializeShaderFunctions(struct GGLInterface * iface)
935 GGL_GET_CONTEXT(ctx, iface);
938 iface->ShaderCreate = ShaderCreate;
939 iface->ShaderSource = GGLShaderSource;
940 iface->ShaderCompile = ShaderCompile;
941 iface->ShaderDelete = ShaderDelete;
942 iface->ShaderProgramCreate = ShaderProgramCreate;
943 iface->ShaderAttach = ShaderAttach;
944 iface->ShaderDetach = ShaderDetach;
945 iface->ShaderProgramLink = ShaderProgramLink;
946 iface->ShaderUse = ShaderUse;
947 iface->ShaderProgramDelete = ShaderProgramDelete;
948 iface->ShaderGetiv = GGLShaderGetiv;
949 iface
950 iface->ShaderProgramGetiv = GGLShaderProgramGetiv;
951 iface->ShaderProgramGetInfoLog = GGLShaderProgramGetInfoLog;
952 iface->ShaderAttributeBind = GGLShaderAttributeBind;
953 iface->ShaderAttributeLocation = GGLShaderAttributeLocation;
954 iface->ShaderVaryingLocation = GGLShaderVaryingLocation;
955 iface->ShaderUniformLocation = GGLShaderUniformLocation;
956 iface->ShaderUniformGetfv = GGLShaderUniformGetfv;
957 iface->ShaderUniformGetiv = GGLShaderUniformGetiv;
958 iface->ShaderUniformGetSamplers = GGLShaderUniformGetSamplers;
959 iface->ShaderUniform = GGLShaderUniform;
960 iface->ShaderUniformMatrix = GGLShaderUniformMatrix;
963 void DestroyShaderFunctions(GGLInterface * iface)
965 GGL_GET_CONTEXT(ctx, iface);