Loading [MathJax]/extensions/tex2jax.js
Photon Editor Library
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
w
Functions
a
c
g
i
n
p
s
t
Variables
Typedefs
Enumerations
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
f
i
l
p
t
Functions
Variables
Macros
f
i
p
▼
Photon Editor Library
Home
Components
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
Include
▼
Source
►
Api
►
App
►
Designer
►
EditorCore
►
Platform
►
Procedure
►
Render
▼
RenderCore
►
Memory
►
Null
▼
OpenGL
Opengl.cpp
►
Opengl.h
►
opengl_config.h
►
opengl_enums.cpp
►
opengl_enums.h
OpenglContext.cpp
►
OpenglContext.h
OpenglFramebuffer.cpp
►
OpenglFramebuffer.h
►
OpenglGHI.cpp
►
OpenglGHI.h
OpenglIndexStorage.cpp
►
OpenglIndexStorage.h
OpenglMemoryManager.cpp
►
OpenglMemoryManager.h
OpenglMesh.cpp
►
OpenglMesh.h
►
OpenglObjectManager.cpp
►
OpenglObjectManager.h
►
OpenglShader.cpp
►
OpenglShader.h
►
OpenglShaderProgram.cpp
►
OpenglShaderProgram.h
OpenglTexture.cpp
►
OpenglTexture.h
OpenglVertexStorage.cpp
►
OpenglVertexStorage.h
►
Query
►
SDL
BasicGraphicsMemoryManager.cpp
►
BasicGraphicsMemoryManager.h
►
EClearTarget.h
►
EGraphicsAPI.h
►
GHI.cpp
►
GHI.h
ghi_enums.cpp
►
ghi_enums.h
►
ghi_enums.ipp
►
ghi_exceptions.h
►
ghi_fwd.h
ghi_infos.cpp
►
ghi_infos.h
►
GHIThread.cpp
►
GHIThread.h
►
GHIThreadCaller.h
►
GHIThreadUpdateContext.h
GraphicsContext.cpp
►
GraphicsContext.h
GraphicsMemoryManager.cpp
►
GraphicsMemoryManager.h
GraphicsObjectManager.cpp
►
GraphicsObjectManager.h
IndexStorage.cpp
►
IndexStorage.h
Mesh.cpp
►
Mesh.h
Shader.cpp
►
Shader.h
ShaderProgram.cpp
►
ShaderProgram.h
Storage.cpp
►
Storage.h
VertexStorage.cpp
►
VertexStorage.h
►
ThirdParty
►
editor_lib_config.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Concepts
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
};
14
class
OpenglMesh
:
public
Mesh
{
…
};
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