VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFormatRenderer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <iostream>
13 
14 namespace makVrv
15 {
19  {
20  public:
21 
28  static unsigned int theVertexCountToModeMap[5];
29  };
30 
34  {
35  public:
36  //Draw arrays using server memory.
37  void drawArrays(unsigned int vertexCount, unsigned int vbo, unsigned int index, unsigned int count);
38 
39  //Draw elements using server memory.
40  void drawElements(unsigned int vbo, unsigned int vertexCount, const unsigned int* indices, unsigned int count);
41 
42  protected:
43  virtual void bindVertexArrays() = 0;
44  virtual void unbindVertexArrays() = 0;
45  };
46 
47 }
48 
virtual void bindVertexArrays()=0
void drawArrays(unsigned int vertexCount, unsigned int vbo, unsigned int index, unsigned int count)
Render modes for drawing GL primitives.
Definition: DtFormatRenderer.h:18
virtual void unbindVertexArrays()=0
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
Class for defining how an effect renders a format of data.
Definition: DtFormatRenderer.h:33
void drawElements(unsigned int vbo, unsigned int vertexCount, const unsigned int *indices, unsigned int count)

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)