GteGL4Buffer.h
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 #pragma once
9 
10 #include <Graphics/GteBuffer.h>
12 
13 namespace gte
14 {
15 
17 {
18 protected:
19  // Abstract base class.
20  virtual ~GL4Buffer();
22 
23  // Must be called by constructor.
24  virtual void Initialize();
25 
26 public:
27  // Member access.
28  inline Buffer* GetBuffer() const;
29  inline GLenum GetType() const;
30  inline GLenum GetUsage() const;
31 
32  // TODO: TENTATIVE INTERFACE (modify as needed). Do we really need
33  // these to be virtual? Revisit the DX11 code and investigate why the
34  // choice was made there.
35  virtual bool Update();
36  virtual bool CopyCpuToGpu();
37  virtual bool CopyGpuToCpu();
38 
39 protected:
42 };
43 
45 {
46  return static_cast<Buffer*>(mGTObject);
47 }
48 
49 inline GLenum GL4Buffer::GetType() const
50 {
51  return mType;
52 }
53 
55 {
56  return mUsage;
57 }
58 
59 }
GLenum GetUsage() const
Definition: GteGL4Buffer.h:54
Buffer * GetBuffer() const
Definition: GteGL4Buffer.h:44
unsigned int GLenum
Definition: glcorearb.h:83
GLenum GetType() const
Definition: GteGL4Buffer.h:49
GLuint buffer
Definition: glcorearb.h:655
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:103


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00