CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
TrGL2LocalContext.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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
27
28#include "TD_PackPush.h"
29
30#include "../TrRndLocalContext.h"
31#include "GLES2Include.h"
32#include "../TrRenderExport.h"
33
37#define GLProcedure0(t,a) virtual t no##a() const;
38#define GLProcedure(t,a,b) virtual t no##a(b) const;
39#define GLFunction(t,a,b) virtual t no##a(b) const;
40#define GLFunction2(t,a,b,c) virtual t no##a(b,c) const;
41#define GLFunction3(t,a,b,c,d) virtual t no##a(b,c,d) const;
42#define GLFunction4(t,a,b,c,d,e) virtual t no##a(b,c,d,e) const;
43#define GLFunction5(t,a,b,c,d,e,f) virtual t no##a(b,c,d,e,f) const;
44#define GLFunction6(t,a,b,c,d,e,f,g) virtual t no##a(b,c,d,e,f,g) const;
45#define GLFunction7(t,a,b,c,d,e,f,g,h) virtual t no##a(b,c,d,e,f,g,h) const;
46#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;
47
49{
50 virtual void CreateExtensionRegistry() const;
51 public:
53
54 virtual OdTrRndNoGLShaderState* CreateShaderState() const;
55 virtual void* GetNoneDrawBuffer();
56 virtual void* GetNoneReadBuffer();
57 virtual void* GetFrameDrawBuffer();
58 virtual void* GetFrameReadBuffer();
59 virtual void* GetDrawBuffersExt(OdTrRndNoGLExtensionsRegistry &extReg, GLsizei n, const GLenum *bufs, bool bNativeES = false);
60 virtual void DeleteDrawBuffer(void *p);
61 virtual void DeleteReadBuffer(void *p);
62#include "Tr/render/nogl/TrRndNoGLContextHolderFunctionsList.inl"
63
64 // Each platform implementation must implement last one method
66};
67
69
70#include "TD_PackPop.h"
71
72#endif // ODTRGL2LOCALCONTEXT
OdSmartPtr< OdTrGL2LocalContext > OdTrGL2LocalContextPtr
#define TDRENDER_EXPORT
virtual void * GetNoneReadBuffer()
virtual OdTrRndNoGLShaderState * CreateShaderState() const
virtual void * GetFrameDrawBuffer()
virtual void DeleteReadBuffer(void *p)
virtual void * GetDrawBuffersExt(OdTrRndNoGLExtensionsRegistry &extReg, GLsizei n, const GLenum *bufs, bool bNativeES=false)
virtual void * GetFrameReadBuffer()
static OdSmartPtr< OdTrGL2LocalContext > createLocalContext(OdTrVisRenderClient *pDevice)
virtual void DeleteDrawBuffer(void *p)
virtual void * GetNoneDrawBuffer()
int GLsizei
Definition: NoGL.h:37
unsigned int GLenum
Definition: NoGL.h:31