ManaPlus
Macros | Functions | Variables
openglgraphicsvertexes.h File Reference

(986a3bf)

#include "localconsts.h"
#include <SDL_opengl.h>
#include "utils/vector.h"

Go to the source code of this file.

Macros

#define GL_GLEXT_PROTOTYPES   1
 
#define GL_GLEXT_LEGACY
 

Functions

 PRAGMA45 (GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class OpenGLGraphicsVertexes
 

Variables

unsigned int vertexBufSize
 

Macro Definition Documentation

◆ GL_GLEXT_LEGACY

#define GL_GLEXT_LEGACY

◆ GL_GLEXT_PROTOTYPES

#define GL_GLEXT_PROTOTYPES   1

Definition at line 33 of file openglgraphicsvertexes.h.

Function Documentation

◆ PRAGMA45()

PRAGMA45 ( GCC diagnostic  push)

Definition at line 38 of file openglgraphicsvertexes.h.

49 {
50  public:
51  OpenGLGraphicsVertexes();
52 
53  A_DELETE_COPY(OpenGLGraphicsVertexes)
54 
55  ~OpenGLGraphicsVertexes();
56 
57  GLfloat *switchFloatTexArray() restrict2;
58 
59  GLint *switchIntVertArray() restrict2;
60 
61  GLint *switchIntTexArray() restrict2;
62 
63  GLshort *switchShortVertArray() restrict2;
64 
65  STD_VECTOR<GLfloat*> *getFloatTexPool() restrict2 A_WARN_UNUSED
66  { return &mFloatTexPool; }
67 
68  STD_VECTOR<GLint*> *getIntVertPool() restrict2 A_WARN_UNUSED
69  { return &mIntVertPool; }
70 
71  STD_VECTOR<GLshort*> *getShortVertPool() restrict2 A_WARN_UNUSED
72  { return &mShortVertPool; }
73 
74  STD_VECTOR<GLint*> *getIntTexPool() restrict2 A_WARN_UNUSED
75  { return &mIntTexPool; }
76 
77  void switchVp(const int n) restrict2;
78 
79  GLfloat *continueFloatTexArray() restrict2 RETURNS_NONNULL;
80 
81  GLint *continueIntVertArray() restrict2 RETURNS_NONNULL;
82 
83  GLshort *continueShortVertArray() restrict2 RETURNS_NONNULL;
84 
85  GLint *continueIntTexArray() restrict2 RETURNS_NONNULL;
86 
87  int continueVp() restrict2;
88 
89  void updateVp(const int n) restrict2;
90 
91  STD_VECTOR<int> *getVp() restrict2 A_WARN_UNUSED
92  { return &mVp; }
93 
94  void init() restrict2;
95 
96  void clear() restrict2;
97 
98  int ptr;
99 
100  GLfloat *mFloatTexArray;
101  GLint *mIntTexArray;
102  GLint *mIntVertArray;
103  GLshort *mShortVertArray;
104  STD_VECTOR<int> mVp;
105  STD_VECTOR<GLfloat*> mFloatTexPool;
106  STD_VECTOR<GLint*> mIntVertPool;
107  STD_VECTOR<GLshort*> mShortVertPool;
108  STD_VECTOR<GLint*> mIntTexPool;
109  STD_VECTOR<GLuint> mVbo;
110 };
#define restrict2
Definition: localconsts.h:166
#define RETURNS_NONNULL
Definition: localconsts.h:167
#define A_WARN_UNUSED
Definition: localconsts.h:161
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
void init()
Definition: playerinfo.cpp:434
void clear()
Definition: playerinfo.cpp:452
#define STD_VECTOR
Definition: vector.h:30

References A_DELETE_COPY, A_WARN_UNUSED, PlayerInfo::clear(), PlayerInfo::init(), restrict2, and RETURNS_NONNULL.

Variable Documentation

◆ vertexBufSize

unsigned int vertexBufSize
extern

Definition at line 30 of file openglgraphicsvertexes.cpp.