MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / Initialize

Method Initialize

ZEngine/src/GraphicRenderer3D.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void GraphicRenderer3D::Initialize() {
21 // enable management of transparent background image (RGBA-8)
22 glEnable(GL_BLEND);
23 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
24
25 // enable Z-depth and stencil testing
26 glEnable(GL_DEPTH_TEST);
27 glEnable(GL_STENCIL_TEST);
28 }
29
30 void GraphicRenderer3D::AddMesh(Meshes::Mesh& mesh) {
31 m_mesh_collection.push_back(mesh);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected