Home | History | Annotate | Download | only in gpu

Lines Matching defs:Shader

35 #include "Shader.h"
46 void Shader::affineTo3x3(const AffineTransform& transform, float mat[9])
60 void Shader::affineTo4x4(const AffineTransform& transform, float mat[16])
81 unsigned Shader::loadShader(GraphicsContext3D* context, unsigned type, const String& shaderSource)
83 unsigned shader = context->createShader(type);
84 if (!shader)
87 context->shaderSource(shader, shaderSource);
88 context->compileShader(shader);
90 context->getShaderiv(shader, GraphicsContext3D::COMPILE_STATUS, &compileStatus);
92 String infoLog = context->getShaderInfoLog(shader);
94 context->deleteShader(shader);
97 return shader;
101 unsigned Shader::loadProgram(GraphicsContext3D* context, const String& vertexShaderSource, const String& fragmentShaderSource)
124 Shader::Shader(GraphicsContext3D* context, unsigned program)
130 Shader::~Shader()
136 String Shader::generateVertex(Shader::VertexType vertexType, Shader::FillType fillType)
192 String Shader::generateFragment(Shader::VertexType vertexType, Shader::FillType fillType, Shader::AntialiasType antialiasType)