Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
OpenglMesh.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RenderCore/Mesh.h
"
4
5
#include "
ThirdParty/glad2.h
"
6
7
#include <Utility/TSpan.h>
8
9
namespace
ph::editor::ghi
10
{
11
12
class
Storage;
13
14
class
OpenglMesh
:
public
Mesh
15
{
16
public
:
17
OpenglMesh
(
18
const
MeshVertexLayoutInfo
& layout,
19
TSpanView<std::shared_ptr<VertexStorage>> vertexStorages);
20
21
OpenglMesh
(
22
const
MeshVertexLayoutInfo
& layout,
23
TSpanView<std::shared_ptr<VertexStorage>> vertexStorages,
24
const
std::shared_ptr<IndexStorage>& indexStorage);
25
26
~OpenglMesh
()
override
;
27
28
void
bind
()
override
;
29
30
private
:
31
static
GLuint getOpenglHandle(
Storage
& storage);
32
33
GLuint m_vaoID;
34
};
35
36
}
// end namespace ph::editor::ghi
Mesh.h
ph::editor::ghi::Mesh
Definition
Mesh.h:42
ph::editor::ghi::MeshVertexLayoutInfo
Definition
Mesh.h:19
ph::editor::ghi::OpenglMesh
Definition
OpenglMesh.h:15
ph::editor::ghi::OpenglMesh::OpenglMesh
OpenglMesh(const MeshVertexLayoutInfo &layout, TSpanView< std::shared_ptr< VertexStorage > > vertexStorages)
Definition
OpenglMesh.cpp:13
ph::editor::ghi::OpenglMesh::~OpenglMesh
~OpenglMesh() override
Definition
OpenglMesh.cpp:81
ph::editor::ghi::OpenglMesh::bind
void bind() override
Definition
OpenglMesh.cpp:86
ph::editor::ghi::Storage
Definition
Storage.h:14
glad2.h
ph::editor::ghi
Definition
PlatformDisplay.h:13
Source
RenderCore
OpenGL
OpenglMesh.h
Generated by
1.11.0