GteGL4DrawTarget.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 
13 
14 namespace gte
15 {
16 
18 {
19 public:
20  // Construction and destruction.
21  virtual ~GL4DrawTarget();
23  std::vector<GL4TextureRT*>& rtTextures, GL4TextureDS* dsTexture);
24  static std::shared_ptr<GEDrawTarget> Create(DrawTarget const* target,
25  std::vector<GEObject*>& rtTextures, GEObject* dsTexture);
26 
27  // Member access.
28  inline GL4TextureRT* GetRTTexture(unsigned int i) const;
29  inline GL4TextureDS* GetDSTexture() const;
30 
31  // Used in the Renderer::Draw function.
32  void Enable();
33  void Disable();
34 
35 private:
36  std::vector<GL4TextureRT*> mRTTextures;
38 
40 
41  // Temporary storage during enable/disable of targets.
48 };
49 
50 inline GL4TextureRT* GL4DrawTarget::GetRTTexture(unsigned int i) const
51 {
52  return mRTTextures[i];
53 }
54 
56 {
57  return mDSTexture;
58 }
59 
60 }
int GLint
Definition: glcorearb.h:85
unsigned int GLuint
Definition: glcorearb.h:89
GL4TextureRT * GetRTTexture(unsigned int i) const
GL4TextureDS * GetDSTexture() const
GL4TextureDS * mDSTexture
GLenum target
Definition: glcorearb.h:1662
int GLsizei
Definition: glcorearb.h:86
double GLdouble
Definition: glcorearb.h:88
std::vector< GL4TextureRT * > mRTTextures
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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