MCPcopy
hub / github.com/EngoEngine/engo / Shader

Interface Shader

common/render_shaders.go:66–72  ·  view source on GitHub ↗

Shader when implemented can be used in the RenderSystem as an OpenGl Shader. Setup holds the actual OpenGL shader data, and prepares any matrices and OpenGL calls for use. Pre is called just before the Draw step. Draw is the Draw step. Post is called just after the Draw step.

Source from the content-addressed store, hash-verified

64//
65// Post is called just after the Draw step.
66type Shader interface {
67 Setup(*ecs.World) error
68 Pre()
69 Draw(*RenderComponent, *SpaceComponent)
70 Post()
71 SetCamera(*CameraSystem)
72}
73
74// CullingShader when implemented can be used in the RenderSystem to test if an entity should be rendered.
75type CullingShader interface {

Callers 9

initShadersFunction · 0.65
UpdateMethod · 0.65
UpdateMethod · 0.95
RenderNRGBAMethod · 0.65
generateFontAtlasMethod · 0.65
LoadMethod · 0.65
ImageToNRGBAFunction · 0.65
UpdateMethod · 0.95
newCameraFunction · 0.65

Implementers 4

textShadercommon/render_shaders_text.go
blendmapShadercommon/render_shaders_blendmap.go
legacyShadercommon/render_shaders_shapes.go
basicShadercommon/render_shaders_default.go

Calls

no outgoing calls

Tested by

no test coverage detected