Elevate Engine
1
Loading...
Searching...
No Matches
OpenGLVertexArray.h
Go to the documentation of this file.
1
#pragma once
2
#include "
ElevateEngine/Renderer/Buffer.h
"
3
#include "
ElevateEngine/Renderer/VertexArray.h
"
4
5
namespace
Elevate
6
{
7
class
OpenGLVertexArray
:
public
VertexArray
8
{
9
public
:
10
OpenGLVertexArray
();
11
~OpenGLVertexArray
();
12
13
virtual
void
Bind
()
const override
;
14
virtual
void
Unbind
()
const override
;
15
16
virtual
void
AddVertexBuffer
(
const
std::shared_ptr<VertexBuffer>& vertexBuffer)
override
;
17
virtual
void
SetIndexBuffer
(
const
std::shared_ptr<IndexBuffer>& indexBuffer)
override
;
18
19
void
LinkAttribute
(uint32_t layout, uint32_t size, uint32_t type,
bool
normalized, uint32_t stride,
const
void
* offset)
const
;
20
private
:
21
unsigned
int
m_RendererID;
22
};
23
}
Buffer.h
VertexArray.h
Elevate::OpenGLVertexArray
Definition
OpenGLVertexArray.h:8
Elevate::OpenGLVertexArray::OpenGLVertexArray
OpenGLVertexArray()
Definition
OpenGLVertexArray.cpp:13
Elevate::OpenGLVertexArray::AddVertexBuffer
virtual void AddVertexBuffer(const std::shared_ptr< VertexBuffer > &vertexBuffer) override
Definition
OpenGLVertexArray.cpp:40
Elevate::OpenGLVertexArray::Unbind
virtual void Unbind() const override
Definition
OpenGLVertexArray.cpp:35
Elevate::OpenGLVertexArray::SetIndexBuffer
virtual void SetIndexBuffer(const std::shared_ptr< IndexBuffer > &indexBuffer) override
Definition
OpenGLVertexArray.cpp:71
Elevate::OpenGLVertexArray::Bind
virtual void Bind() const override
Definition
OpenGLVertexArray.cpp:30
Elevate::OpenGLVertexArray::~OpenGLVertexArray
~OpenGLVertexArray()
Definition
OpenGLVertexArray.cpp:22
Elevate::OpenGLVertexArray::LinkAttribute
void LinkAttribute(uint32_t layout, uint32_t size, uint32_t type, bool normalized, uint32_t stride, const void *offset) const
Definition
OpenGLVertexArray.cpp:78
Elevate::VertexArray
Definition
VertexArray.h:8
Elevate
Definition
AudioDistanceProbe.h:9
ElevateEngine
src
ElevateEngine
Renderer
OpenGL
OpenGLVertexArray.h
Generated by
1.9.8