Documentation
¶
Index ¶
- type BasicRectData
- type Color
- type Context
- func (this *Context) AddRect(data RectData)
- func (this *Context) ClearScene()
- func (this *Context) Draw()
- func (this *Context) GetTextureId(name string) (Texture, bool)
- func (this *Context) Initialize(textureLocation string)
- func (this *Context) SetCameraAngle(rad float64)
- func (this *Context) SetCameraPosition(posX, posY float32)
- func (this *Context) SetCameraSize(width, height float32)
- func (this *Context) SetClearColor(bg Color)
- type RectData
- type Texture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicRectData ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetTextureId ¶
Gets the ID of a texture
func (*Context) Initialize ¶
Initializes OpenGL and loads the textures from disk
func (*Context) SetCameraAngle ¶
Sets the angle of the camera in radians (default is 0)
func (*Context) SetCameraPosition ¶
Sets the position of the camera (default is [0;0])
func (*Context) SetCameraSize ¶
Sets the size of the camera (default 1.0 for w and h)
func (*Context) SetClearColor ¶
Sets the color used to clear the screen (default is black)
type RectData ¶
type RectData struct { BasicRectData Texture }
Click to show internal directories.
Click to hide internal directories.