rendering

package
v0.0.0-...-f053a90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	WindowTitle  = "go-gravity"
	WindowWidth  = 800
	WindowHeight = 700
	FrameRate    = 60
)

Main window variables

Variables

This section is empty.

Functions

func CreateSdlRenderer

func CreateSdlRenderer(window *sdl.Window) (*sdl.Renderer, int)

CreateSdlRenderer creates SDL2 renderer

func CreateSdlWindow

func CreateSdlWindow() (*sdl.Window, int)

CreateSdlWindow creates SDL2 window

func RenderParticle

func RenderParticle() int

RenderParticle used for rendering a single particle in SDL2

func RenderParticleSystem

func RenderParticleSystem() int

RenderParticleSystem used for rendering a particle system in SDL2

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL