MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / EnsureMesh

Function EnsureMesh

engine/PoseidonGL33/EngineGL33_ShadowDepth.cpp:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool EnsureMesh()
190{
191 if (s_vao)
192 return true;
193 glGenVertexArrays(1, &s_vao);
194 glGenBuffers(1, &s_vbo);
195 GL33Bind::Vao(s_vao);
196 glBindBuffer(GL_ARRAY_BUFFER, s_vbo);
197 glEnableVertexAttribArray(0);
198 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), nullptr);
199 GL33Bind::Vao(0);
200 return true;
201}
202
203const char* kAlphaVS = R"(#version 330 core
204layout(location = 0) in vec3 pos;

Callers 2

RenderDepthFBOFunction · 0.85
RenderCascadeArrayFunction · 0.85

Calls 1

VaoFunction · 0.85

Tested by

no test coverage detected