VR-Forces 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) 2022 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  //Multi Draw arrays using server memory.
40  void multiDrawArrays(unsigned int vertexCount, unsigned int vbo, const int* indices, const int* counts, int totalNumberOfArrays);
41 
42  //Draw elements using server memory.
43  void drawElements(unsigned int vbo, unsigned int vertexCount, const unsigned int* indices, unsigned int count);
44 
45  protected:
46  virtual void bindVertexArrays() = 0;
47  virtual void unbindVertexArrays() = 0;
48  };
49 
50 }
51 
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
void multiDrawArrays(unsigned int vertexCount, unsigned int vbo, const int *indices, const int *counts, int totalNumberOfArrays)
#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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)