Documentation ¶
Index ¶
Constants ¶
View Source
const BFS = `
#version 330 core
in vec4 VertexColor;
in vec2 TexCoord;
out vec4 color;
uniform sampler2D imageTexture;
void main()
{
color = texture(imageTexture, TexCoord);
}
` + "\x00"
View Source
const BVS = `
#version 330 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec3 color;
layout (location = 2) in vec2 texCoord;
out vec4 VertexColor;
out vec2 TexCoord;
void main()
{
gl_Position = vec4(position, 1.0);
VertexColor = vec4(color, 1.0f);
TexCoord = vec2(texCoord.x, 1.0f - texCoord.y);
}
` + "\x00"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Shader ¶
func ProgramMust ¶
type Texture ¶
type Texture struct {
Handle uint32
}
func NewTexture ¶
func (*Texture) SetMagFilter ¶
func (*Texture) SetMinFilter ¶
Click to show internal directories.
Click to hide internal directories.