Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Parallax *parallax Model *model )
Functions ¶
func Initialize ¶
func Initialize() error
func UseProgram ¶
UseProgram sets the provided shader program as being active - meaning it will be used in rendering calls.
Note that the gl program can be set directly by calling gl.UseProgram, rather than this method. Generally a UseProgram call is expensive, but by wrapping it in this method we can keep track of the currently active program so the GPU doesn't need to be interacted with if there's no change. Given this, it's recommended not to use gl.UseProgram and to use this method instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.