MCPcopy Create free account
hub / github.com/SolarLune/masterplan / NewRenderTexture

Function NewRenderTexture

rendertexture.go:88–96  ·  view source on GitHub ↗

NewRenderTexture creates a new *RenderTexture. You should specify a function to be called when the Texture needs to be rendered (i.e. directly after calling ewRenderTexture(), as well as whenever SDL loses context and render textures need to be rebuilt (see: https://wiki.libsdl.org/SDL_EventType, SD

()

Source from the content-addressed store, hash-verified

86// a function to be called when the Texture needs to be rendered (i.e. directly after calling ewRenderTexture(), as well as whenever SDL loses context
87// and render textures need to be rebuilt (see: https://wiki.libsdl.org/SDL_EventType, SDL_RENDER_TARGETS_RESET)). This is a bit of a doozy.
88func NewRenderTexture() *RenderTexture {
89
90 rt := &RenderTexture{}
91
92 renderTextures = append(renderTextures, rt)
93
94 return rt
95
96}

Callers 6

RecreateMethod · 0.85
RecreateMethod · 0.85
RenderTextMethod · 0.85
CreateGridTextureMethod · 0.85
RecreateTextureMethod · 0.85
NewSubPageContentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected