Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
GL4
GteGL4VertexBuffer.cpp
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#include <
GTEnginePCH.h
>
9
#include <
LowLevel/GteLogger.h
>
10
#include <
Graphics/GL4/GteGL4VertexBuffer.h
>
11
using namespace
gte
;
12
13
GL4VertexBuffer::GL4VertexBuffer
(
VertexBuffer
const
* vbuffer)
14
:
15
GL4Buffer
(vbuffer,
GL_ARRAY_BUFFER
)
16
{
17
Initialize
();
18
}
19
20
std::shared_ptr<GEObject>
GL4VertexBuffer::Create
(
void
*,
GraphicsObject
const
*
object
)
21
{
22
if
(object->
GetType
() ==
GT_VERTEX_BUFFER
)
23
{
24
return
std::make_shared<GL4VertexBuffer>(
25
static_cast<
VertexBuffer
const*
>
(
object
));
26
}
27
28
LogError
(
"Invalid object type."
);
29
return
nullptr
;
30
}
GteLogger.h
gte::GL4VertexBuffer::Create
static std::shared_ptr< GEObject > Create(void *unused, GraphicsObject const *object)
Definition:
GteGL4VertexBuffer.cpp:20
GT_VERTEX_BUFFER
GT_VERTEX_BUFFER
Definition:
GteGraphicsObject.h:79
gte::GL4Buffer
Definition:
GteGL4Buffer.h:16
GTEnginePCH.h
gte::GraphicsObject::GetType
GraphicsObjectType GetType() const
Definition:
GteGraphicsObject.h:165
GL_ARRAY_BUFFER
#define GL_ARRAY_BUFFER
Definition:
glcorearb.h:625
gte::VertexBuffer
Definition:
GteVertexBuffer.h:18
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
LogError
#define LogError(message)
Definition:
GteLogger.h:92
gte
Definition:
GLX/GteWICFileIO.h:16
gte::GL4VertexBuffer::GL4VertexBuffer
GL4VertexBuffer(VertexBuffer const *vbuffer)
Definition:
GteGL4VertexBuffer.cpp:13
object
GLuint object
Definition:
glext.h:6426
GteGL4VertexBuffer.h
gte::GL4Buffer::Initialize
virtual void Initialize()
Definition:
GteGL4Buffer.cpp:54
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00