MCPcopy Create free account
hub / github.com/cginternals/globjects / initialize

Function initialize

source/examples/shaderincludes/main.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void initialize()
39{
40 const auto dataPath = common::retrieveDataPath("globjects", "dataPath");
41 globjects::NamedString::create("/color.glsl", new globjects::File(dataPath + "shaderincludes/color.glsl"));
42
43 g_quad = new ScreenAlignedQuad(globjects::Shader::fromFile(GL_FRAGMENT_SHADER, dataPath + "shaderincludes/test.frag"));
44 g_quad->ref();
45}
46
47void deinitialize()
48{

Callers 2

ScreenAlignedQuadMethod · 0.70
mainFunction · 0.70

Calls 1

refMethod · 0.80

Tested by

no test coverage detected