CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
TrGL2LocalContext.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23// GLES2 device local context
24
25#ifndef ODTRGL2LOCALCONTEXT
26#define ODTRGL2LOCALCONTEXT
28#include "TD_PackPush.h"
37#define GLProcedure0(t,a) virtual t no##a() const;
38#define GLProcedure(t,a,b) virtual t no##a(b) const;
39#define GLFunction0(t,a) virtual t no##a() const;
40#define GLFunction(t,a,b) virtual t no##a(b) const;
41#define GLFunction2(t,a,b,c) virtual t no##a(b,c) const;
42#define GLFunction3(t,a,b,c,d) virtual t no##a(b,c,d) const;
43#define GLFunction4(t,a,b,c,d,e) virtual t no##a(b,c,d,e) const;
44#define GLFunction5(t,a,b,c,d,e,f) virtual t no##a(b,c,d,e,f) const;
45#define GLFunction6(t,a,b,c,d,e,f,g) virtual t no##a(b,c,d,e,f,g) const;
46#define GLFunction7(t,a,b,c,d,e,f,g,h) virtual t no##a(b,c,d,e,f,g,h) const;
47#define GLFunction9(t,a,b,c,d,e,f,g,h,i,j) virtual t no##a(b,c,d,e,f,g,h,i,j) const;
51 virtual void CreateExtensionRegistry() const;
52 protected:
55 public:
58 virtual OdTrRndNoGLShaderState* CreateShaderState() const;
59
60 // Returns active draw buffer layout or nullptr if layouts doesn't supported.
62 // Return true if active draw buffer layout is fully compatible with specified layout.
64 // Change active draw buffer layout. Return previous active layout state.
67 // Returns active read buffer layout or nullptr if layouts doesn't supported.
69 // Return true if active read buffer layout is fully compatible with specified layout.
71 // Change active read buffer layout. Return previous active layout state.
76 bool noglDrawSimplePoint(const GLfloat *pPoint) const;
77 bool noglDrawSimplePoint(const GLdouble *pPoint) const;
78 bool noglDrawSimpleLine(const GLfloat *pPoint0, const GLfloat *pPoint1) const;
79 bool noglDrawSimpleLine(const GLdouble *pPoint0, const GLdouble *pPoint1) const;
82
83 bool noglWireframeMode(bool bEnable) const;
84
85 // Each platform implementation must implement last one method
87};
88
90
91#include "TD_PackPop.h"
92
93#endif // ODTRGL2LOCALCONTEXT
OdSmartPtr< OdTrGL2LocalContext > OdTrGL2LocalContextPtr
#define TDRENDER_EXPORT
const DrawBufferLayout * activeDrawBufferLayout() const
ReadBufferLayout changeReadBufferLayout(const ReadBufferLayout &rbl)
DrawBufferLayout changeDrawBufferLayout(const DrawBufferLayout &dbl)
virtual OdTrRndNoGLShaderState * CreateShaderState() const
GLenum GLuint GLenum GLbitfield GLboolean GLfloat GLclampf GLenum GLenum GLfloat
DrawBufferLayout m_drawBufferLayout
static OdSmartPtr< OdTrGL2LocalContext > createLocalContext(OdTrVisRenderClient *pDevice)
const ReadBufferLayout * activeReadBufferLayout() const
ReadBufferLayout m_readBufferLayout
virtual bool isDrawBufferLayoutCompatible(const DrawBufferLayout &) const
virtual bool isReadBufferLayoutCompatible(const ReadBufferLayout &) const
virtual bool noglDrawSimpleIndexedLine(GLuint id0, GLuint id1) const
virtual bool noglDrawSimplePoint(const GLfloat *pPoint) const
virtual bool noglWireframeMode(bool bEnable) const
virtual bool noglDrawSimpleLine(const GLfloat *pPoint0, const GLfloat *pPoint1) const
virtual bool noglDrawSimpleIndexedPoint(GLuint id) const
double GLdouble
Definition NoGL.h:43
unsigned int GLuint
Definition NoGL.h:40