Start rts thing

This commit is contained in:
Krzosa Karol
2023-04-17 21:51:41 +02:00
parent 7cb4b7145f
commit 013db0f985
4 changed files with 94 additions and 45 deletions

View File

@@ -525,16 +525,16 @@ EndVrStereoMode :: #foreign () // End stereo renderi
// Shader management functions
// NOTE: Shader functionality is not available on OpenGL 1.1
// LoadShader :: #foreign (vsFileName: *char, fsFileName: *char): Shader // Load shader from files and bind default locations
// LoadShaderFromMemory :: #foreign (vsCode, fsCode: *char): Shader // Load shader from code strings and bind default locations
// IsShaderReady :: #foreign (shader: Shader): bool // Check if a shader is ready
// GetShaderLocation :: #foreign (shader: Shader, uniformName: *char): int // Get shader uniform location
// GetShaderLocationAttrib :: #foreign (shader: Shader, attribName: *char): int // Get shader attribute location
// SetShaderValue :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, value: *void, uniformType: ShaderUniformDataType) // Set shader uniform value
// SetShaderValueV :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, value: *void, uniformType: ShaderUniformDataType, count: int) // Set shader uniform value vector
// SetShaderValueMatrix :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, mat: Matrix) // Set shader uniform value (matrix 4x4)
// SetShaderValueTexture :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, texture: Texture2D) // Set shader uniform value for texture (sampler2d)
// UnloadShader :: #foreign (shader: Shader) // Unload shader from GPU memory (VRAM)
LoadShader :: #foreign (vsFileName: *char, fsFileName: *char): Shader // Load shader from files and bind default locations
LoadShaderFromMemory :: #foreign (vsCode: *char, fsCode: *char): Shader // Load shader from code strings and bind default locations
IsShaderReady :: #foreign (shader: Shader): bool // Check if a shader is ready
GetShaderLocation :: #foreign (shader: Shader, uniformName: *char): int // Get shader uniform location
GetShaderLocationAttrib :: #foreign (shader: Shader, attribName: *char): int // Get shader attribute location
SetShaderValue :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, value: *void, uniformType: ShaderUniformDataType) // Set shader uniform value
SetShaderValueV :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, value: *void, uniformType: ShaderUniformDataType, count: int) // Set shader uniform value vector
SetShaderValueMatrix :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, mat: Matrix) // Set shader uniform value (matrix 4x4)
SetShaderValueTexture :: #foreign (shader: Shader, locIndex: ShaderLocationIndex, texture: Texture2D) // Set shader uniform value for texture (sampler2d)
UnloadShader :: #foreign (shader: Shader) // Unload shader from GPU memory (VRAM)
// Screen-space-related functions