Blender
V3.3
|
#include <Python.h>
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "GPU_state.h"
#include "../generic/py_capi_utils.h"
#include "glew-mx.h"
#include "bgl.h"
Go to the source code of this file.
Classes | |
struct | BufferOrOffset |
Functions | |
static PyObject * | Buffer_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
static PyObject * | Method_ShaderSource (PyObject *self, PyObject *args) |
Utility Functions | |
int | BGL_typeSize (int type) |
static int | gl_buffer_type_from_py_buffer (Py_buffer *pybuffer) |
static bool | compare_dimensions (int ndim, const int *dim1, const Py_ssize_t *dim2) |
Local utility defines for wrapping OpenGL | |
#define | void_str "" |
#define | void_var(num) |
#define | void_ref(num) &bgl_var##num |
#define | void_def(num) char bgl_var##num |
#define | GLbooleanP_str "O!" |
#define | GLbooleanP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLbooleanP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLbooleanP_def(number) Buffer *bgl_buffer##number |
#define | GLbyteP_str "O!" |
#define | GLbyteP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLbyteP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLbyteP_def(number) Buffer *bgl_buffer##number |
#define | GLubyteP_str "O!" |
#define | GLubyteP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLubyteP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLubyteP_def(number) Buffer *bgl_buffer##number |
#define | GLintP_str "O!" |
#define | GLintP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLintP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLintP_def(number) Buffer *bgl_buffer##number |
#define | GLint64P_str "O!" |
#define | GLint64P_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLint64P_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLint64P_def(number) Buffer *bgl_buffer##number |
#define | GLenumP_str "O!" |
#define | GLenumP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLenumP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLenumP_def(number) Buffer *bgl_buffer##number |
#define | GLuintP_str "O!" |
#define | GLuintP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLuintP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLuintP_def(number) Buffer *bgl_buffer##number |
#define | GLshortP_str "O!" |
#define | GLshortP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLshortP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLshortP_def(number) Buffer *bgl_buffer##number |
#define | GLushortP_str "O!" |
#define | GLushortP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLushortP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLushortP_def(number) Buffer *bgl_buffer##number |
#define | GLfloatP_str "O!" |
#define | GLfloatP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLfloatP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLfloatP_def(number) Buffer *bgl_buffer##number |
#define | GLdoubleP_str "O!" |
#define | GLdoubleP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLdoubleP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLdoubleP_def(number) Buffer *bgl_buffer##number |
#define | GLvoidP_str "O&" |
#define | GLvoidP_var(number) |
#define | GLvoidP_ref(number) BGL_BufferOrOffsetConverter, &bgl_buffer##number |
#define | GLvoidP_def(number) BufferOrOffset bgl_buffer##number |
#define | GLsizeiP_str "O!" |
#define | GLsizeiP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLsizeiP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLsizeiP_def(number) Buffer *bgl_buffer##number |
#define | GLcharP_str "O!" |
#define | GLcharP_var(number) (bgl_buffer##number)->buf.asvoid |
#define | GLcharP_ref(number) &BGL_bufferType, &bgl_buffer##number |
#define | GLcharP_def(number) Buffer *bgl_buffer##number |
#define | GLenum_str "i" |
#define | GLenum_var(num) bgl_var##num |
#define | GLenum_ref(num) &bgl_var##num |
#define | GLenum_def(num) /* unsigned */ int GLenum_var(num) |
#define | GLboolean_str "b" |
#define | GLboolean_var(num) bgl_var##num |
#define | GLboolean_ref(num) &bgl_var##num |
#define | GLboolean_def(num) /* unsigned */ char GLboolean_var(num) |
#define | GLbitfield_str "i" |
#define | GLbitfield_var(num) bgl_var##num |
#define | GLbitfield_ref(num) &bgl_var##num |
#define | GLbitfield_def(num) /* unsigned */ int GLbitfield_var(num) |
#define | GLshort_str "h" |
#define | GLshort_var(num) bgl_var##num |
#define | GLshort_ref(num) &bgl_var##num |
#define | GLshort_def(num) short GLshort_var(num) |
#define | GLint_str "i" |
#define | GLint_var(num) bgl_var##num |
#define | GLint_ref(num) &bgl_var##num |
#define | GLint_def(num) int GLint_var(num) |
#define | GLsizei_str "n" |
#define | GLsizei_var(num) bgl_var##num |
#define | GLsizei_ref(num) &bgl_var##num |
#define | GLsizei_def(num) size_t GLsizei_var(num) |
#define | GLsizeiptr_str "n" |
#define | GLsizeiptr_var(num) bgl_var##num |
#define | GLsizeiptr_ref(num) &bgl_var##num |
#define | GLsizeiptr_def(num) size_t GLsizeiptr_var(num) |
#define | GLintptr_str "n" |
#define | GLintptr_var(num) bgl_var##num |
#define | GLintptr_ref(num) &bgl_var##num |
#define | GLintptr_def(num) size_t GLintptr_var(num) |
#define | GLubyte_str "B" |
#define | GLubyte_var(num) bgl_var##num |
#define | GLubyte_ref(num) &bgl_var##num |
#define | GLubyte_def(num) /* unsigned */ char GLubyte_var(num) |
#define | GLuint_str "I" |
#define | GLuint_var(num) bgl_var##num |
#define | GLuint_ref(num) &bgl_var##num |
#define | GLuint_def(num) /* unsigned */ int GLuint_var(num) |
#define | GLfloat_str "f" |
#define | GLfloat_var(num) bgl_var##num |
#define | GLfloat_ref(num) &bgl_var##num |
#define | GLfloat_def(num) float GLfloat_var(num) |
#define | GLstring_str "s" |
#define | GLstring_var(number) bgl_var##number |
#define | GLstring_ref(number) &bgl_var##number |
#define | GLstring_def(number) char *GLstring_var(number) |
#define | GLdouble_str "d" |
#define | GLdouble_var(num) bgl_var##num |
#define | GLdouble_ref(num) &bgl_var##num |
#define | GLdouble_def(num) double GLdouble_var(num) |
#define | _arg_def1(a1) a1##_def(1) |
#define | _arg_def2(a1, a2) |
#define | _arg_def3(a1, a2, a3) |
#define | _arg_def4(a1, a2, a3, a4) |
#define | _arg_def5(a1, a2, a3, a4, a5) |
#define | _arg_def6(a1, a2, a3, a4, a5, a6) |
#define | _arg_def7(a1, a2, a3, a4, a5, a6, a7) |
#define | _arg_def8(a1, a2, a3, a4, a5, a6, a7, a8) |
#define | _arg_def9(a1, a2, a3, a4, a5, a6, a7, a8, a9) |
#define | _arg_def10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) |
#define | _arg_def11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) |
#define | arg_def(...) VA_NARGS_CALL_OVERLOAD(_arg_def, __VA_ARGS__) |
#define | _arg_var1(a1) a1##_var(1) |
#define | _arg_var2(a1, a2) _arg_var1(a1), a2##_var(2) |
#define | _arg_var3(a1, a2, a3) _arg_var2(a1, a2), a3##_var(3) |
#define | _arg_var4(a1, a2, a3, a4) _arg_var3(a1, a2, a3), a4##_var(4) |
#define | _arg_var5(a1, a2, a3, a4, a5) _arg_var4(a1, a2, a3, a4), a5##_var(5) |
#define | _arg_var6(a1, a2, a3, a4, a5, a6) _arg_var5(a1, a2, a3, a4, a5), a6##_var(6) |
#define | _arg_var7(a1, a2, a3, a4, a5, a6, a7) _arg_var6(a1, a2, a3, a4, a5, a6), a7##_var(7) |
#define | _arg_var8(a1, a2, a3, a4, a5, a6, a7, a8) _arg_var7(a1, a2, a3, a4, a5, a6, a7), a8##_var(8) |
#define | _arg_var9(a1, a2, a3, a4, a5, a6, a7, a8, a9) _arg_var8(a1, a2, a3, a4, a5, a6, a7, a8), a9##_var(9) |
#define | _arg_var10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _arg_var9(a1, a2, a3, a4, a5, a6, a7, a8, a9), a10##_var(10) |
#define | _arg_var11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) _arg_var10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10), a11##_var(11) |
#define | arg_var(...) VA_NARGS_CALL_OVERLOAD(_arg_var, __VA_ARGS__) |
#define | _arg_ref1(a1) a1##_ref(1) |
#define | _arg_ref2(a1, a2) _arg_ref1(a1), a2##_ref(2) |
#define | _arg_ref3(a1, a2, a3) _arg_ref2(a1, a2), a3##_ref(3) |
#define | _arg_ref4(a1, a2, a3, a4) _arg_ref3(a1, a2, a3), a4##_ref(4) |
#define | _arg_ref5(a1, a2, a3, a4, a5) _arg_ref4(a1, a2, a3, a4), a5##_ref(5) |
#define | _arg_ref6(a1, a2, a3, a4, a5, a6) _arg_ref5(a1, a2, a3, a4, a5), a6##_ref(6) |
#define | _arg_ref7(a1, a2, a3, a4, a5, a6, a7) _arg_ref6(a1, a2, a3, a4, a5, a6), a7##_ref(7) |
#define | _arg_ref8(a1, a2, a3, a4, a5, a6, a7, a8) _arg_ref7(a1, a2, a3, a4, a5, a6, a7), a8##_ref(8) |
#define | _arg_ref9(a1, a2, a3, a4, a5, a6, a7, a8, a9) _arg_ref8(a1, a2, a3, a4, a5, a6, a7, a8), a9##_ref(9) |
#define | _arg_ref10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _arg_ref9(a1, a2, a3, a4, a5, a6, a7, a8, a9), a10##_ref(10) |
#define | _arg_ref11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) _arg_ref10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10), a11##_ref(11) |
#define | arg_ref(...) VA_NARGS_CALL_OVERLOAD(_arg_ref, __VA_ARGS__) |
#define | _arg_str1(a1) a1##_str |
#define | _arg_str2(a1, a2) _arg_str1(a1) a2##_str |
#define | _arg_str3(a1, a2, a3) _arg_str2(a1, a2) a3##_str |
#define | _arg_str4(a1, a2, a3, a4) _arg_str3(a1, a2, a3) a4##_str |
#define | _arg_str5(a1, a2, a3, a4, a5) _arg_str4(a1, a2, a3, a4) a5##_str |
#define | _arg_str6(a1, a2, a3, a4, a5, a6) _arg_str5(a1, a2, a3, a4, a5) a6##_str |
#define | _arg_str7(a1, a2, a3, a4, a5, a6, a7) _arg_str6(a1, a2, a3, a4, a5, a6) a7##_str |
#define | _arg_str8(a1, a2, a3, a4, a5, a6, a7, a8) _arg_str7(a1, a2, a3, a4, a5, a6, a7) a8##_str |
#define | _arg_str9(a1, a2, a3, a4, a5, a6, a7, a8, a9) _arg_str8(a1, a2, a3, a4, a5, a6, a7, a8) a9##_str |
#define | _arg_str10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _arg_str9(a1, a2, a3, a4, a5, a6, a7, a8, a9) a10##_str |
#define | _arg_str11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) _arg_str10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) a11##_str |
#define | arg_str(...) VA_NARGS_CALL_OVERLOAD(_arg_str, __VA_ARGS__) |
#define | ret_def_void |
#define | ret_set_void |
#define | ret_ret_void return Py_INCREF(Py_None), Py_None |
#define | ret_def_GLint int ret_int |
#define | ret_set_GLint ret_int = |
#define | ret_ret_GLint return PyLong_FromLong(ret_int) |
#define | ret_def_GLuint uint ret_uint |
#define | ret_set_GLuint ret_uint = |
#define | ret_ret_GLuint return PyLong_FromLong((long)ret_uint) |
#define | ret_def_GLenum uint ret_uint |
#define | ret_set_GLenum ret_uint = |
#define | ret_ret_GLenum return PyLong_FromLong((long)ret_uint) |
#define | ret_def_GLboolean uchar ret_bool |
#define | ret_set_GLboolean ret_bool = |
#define | ret_ret_GLboolean return PyLong_FromLong((long)ret_bool) |
#define | ret_def_GLstring const uchar *ret_str |
#define | ret_set_GLstring ret_str = |
#define | ret_ret_GLstring |
typedef struct BufferOrOffset | BufferOrOffset |
Buffer API | |
#define | MAX_DIMENSIONS 256 |
static PySequenceMethods | Buffer_SeqMethods |
static PyMappingMethods | Buffer_AsMapping |
static PyMethodDef | Buffer_methods [] |
static PyGetSetDef | Buffer_getseters [] |
PyTypeObject | BGL_bufferType |
static int | Buffer_len (Buffer *self) |
static PyObject * | Buffer_item (Buffer *self, int i) |
static PyObject * | Buffer_slice (Buffer *self, int begin, int end) |
static int | Buffer_ass_item (Buffer *self, int i, PyObject *v) |
static int | Buffer_ass_slice (Buffer *self, int begin, int end, PyObject *seq) |
static PyObject * | Buffer_subscript (Buffer *self, PyObject *item) |
static int | Buffer_ass_subscript (Buffer *self, PyObject *item, PyObject *value) |
static void | Buffer_dealloc (Buffer *self) |
static PyObject * | Buffer_repr (Buffer *self) |
static PyObject * | Buffer_to_list (Buffer *self) |
static PyObject * | Buffer_to_list_recursive (Buffer *self) |
static PyObject * | Buffer_dimensions (Buffer *self, void *UNUSED(arg)) |
static Buffer * | BGL_MakeBuffer_FromData (PyObject *parent, int type, int ndimensions, int *dimensions, void *buf) |
Buffer * | BGL_MakeBuffer (int type, int ndimensions, int *dimensions, void *initbuffer) |
static int | BGL_BufferOrOffsetConverter (PyObject *object, BufferOrOffset *buffer) |
static PyObject * | Buffer_new (PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds) |
OpenGL API Wrapping | |
#define | BGL_Wrap(funcname, ret, arg_list) |
static void | bgl_no_opengl_error (void) |
BGL_Wrap (BlendFunc, void,(GLenum, GLenum)) | |
BGL_Wrap (Clear, void,(GLbitfield)) | |
BGL_Wrap (ClearColor, void,(GLfloat, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (ClearDepth, void,(GLdouble)) | |
BGL_Wrap (ClearStencil, void,(GLint)) | |
BGL_Wrap (ColorMask, void,(GLboolean, GLboolean, GLboolean, GLboolean)) | |
BGL_Wrap (CullFace, void,(GLenum)) | |
BGL_Wrap (DepthFunc, void,(GLenum)) | |
BGL_Wrap (DepthMask, void,(GLboolean)) | |
BGL_Wrap (DepthRange, void,(GLdouble, GLdouble)) | |
BGL_Wrap (Disable, void,(GLenum)) | |
BGL_Wrap (DrawBuffer, void,(GLenum)) | |
BGL_Wrap (Enable, void,(GLenum)) | |
BGL_Wrap (Finish, void,(void)) | |
BGL_Wrap (Flush, void,(void)) | |
BGL_Wrap (FrontFace, void,(GLenum)) | |
BGL_Wrap (GetBooleanv, void,(GLenum, GLbooleanP)) | |
BGL_Wrap (GetDoublev, void,(GLenum, GLdoubleP)) | |
BGL_Wrap (GetError, GLenum,(void)) | |
BGL_Wrap (GetFloatv, void,(GLenum, GLfloatP)) | |
BGL_Wrap (GetIntegerv, void,(GLenum, GLintP)) | |
BGL_Wrap (GetString, GLstring,(GLenum)) | |
BGL_Wrap (GetTexImage, void,(GLenum, GLint, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (GetTexLevelParameterfv, void,(GLenum, GLint, GLenum, GLfloatP)) | |
BGL_Wrap (GetTexLevelParameteriv, void,(GLenum, GLint, GLenum, GLintP)) | |
BGL_Wrap (GetTexParameterfv, void,(GLenum, GLenum, GLfloatP)) | |
BGL_Wrap (GetTexParameteriv, void,(GLenum, GLenum, GLintP)) | |
BGL_Wrap (Hint, void,(GLenum, GLenum)) | |
BGL_Wrap (IsEnabled, GLboolean,(GLenum)) | |
BGL_Wrap (LineWidth, void,(GLfloat)) | |
BGL_Wrap (LogicOp, void,(GLenum)) | |
BGL_Wrap (PixelStoref, void,(GLenum, GLfloat)) | |
BGL_Wrap (PixelStorei, void,(GLenum, GLint)) | |
BGL_Wrap (PointSize, void,(GLfloat)) | |
BGL_Wrap (PolygonMode, void,(GLenum, GLenum)) | |
BGL_Wrap (ReadBuffer, void,(GLenum)) | |
BGL_Wrap (ReadPixels, void,(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (Scissor, void,(GLint, GLint, GLsizei, GLsizei)) | |
BGL_Wrap (StencilFunc, void,(GLenum, GLint, GLuint)) | |
BGL_Wrap (StencilMask, void,(GLuint)) | |
BGL_Wrap (StencilOp, void,(GLenum, GLenum, GLenum)) | |
BGL_Wrap (TexImage1D, void,(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (TexImage2D, void,(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (TexParameterf, void,(GLenum, GLenum, GLfloat)) | |
BGL_Wrap (TexParameterfv, void,(GLenum, GLenum, GLfloatP)) | |
BGL_Wrap (TexParameteri, void,(GLenum, GLenum, GLint)) | |
BGL_Wrap (TexParameteriv, void,(GLenum, GLenum, GLintP)) | |
BGL_Wrap (Viewport, void,(GLint, GLint, GLsizei, GLsizei)) | |
BGL_Wrap (BindTexture, void,(GLenum, GLuint)) | |
BGL_Wrap (CopyTexImage1D, void,(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint)) | |
BGL_Wrap (CopyTexImage2D, void,(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint)) | |
BGL_Wrap (CopyTexSubImage1D, void,(GLenum, GLint, GLint, GLint, GLint, GLsizei)) | |
BGL_Wrap (CopyTexSubImage2D, void,(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) | |
BGL_Wrap (DeleteTextures, void,(GLsizei, GLuintP)) | |
BGL_Wrap (DrawArrays, void,(GLenum, GLint, GLsizei)) | |
BGL_Wrap (DrawElements, void,(GLenum, GLsizei, GLenum, GLvoidP)) | |
BGL_Wrap (GenTextures, void,(GLsizei, GLuintP)) | |
BGL_Wrap (IsTexture, GLboolean,(GLuint)) | |
BGL_Wrap (PolygonOffset, void,(GLfloat, GLfloat)) | |
BGL_Wrap (TexSubImage1D, void,(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (TexSubImage2D, void,(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (CopyTexSubImage3D, void,(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) | |
BGL_Wrap (DrawRangeElements, void,(GLenum, GLuint, GLuint, GLsizei, GLenum, GLvoidP)) | |
BGL_Wrap (TexImage3D, void,(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (TexSubImage3D, void,(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (ActiveTexture, void,(GLenum)) | |
BGL_Wrap (CompressedTexImage1D, void,(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, GLvoidP)) | |
BGL_Wrap (CompressedTexImage2D, void,(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoidP)) | |
BGL_Wrap (CompressedTexImage3D, void,(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, GLvoidP)) | |
BGL_Wrap (CompressedTexSubImage1D, void,(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, GLvoidP)) | |
BGL_Wrap (CompressedTexSubImage2D, void,(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoidP)) | |
BGL_Wrap (CompressedTexSubImage3D, void,(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, GLvoidP)) | |
BGL_Wrap (GetCompressedTexImage, void,(GLenum, GLint, GLvoidP)) | |
BGL_Wrap (SampleCoverage, void,(GLfloat, GLboolean)) | |
BGL_Wrap (BlendColor, void,(GLfloat, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (BlendEquation, void,(GLenum)) | |
BGL_Wrap (BeginQuery, void,(GLenum, GLuint)) | |
BGL_Wrap (BindBuffer, void,(GLenum, GLuint)) | |
BGL_Wrap (BufferData, void,(GLenum, GLsizeiptr, GLvoidP, GLenum)) | |
BGL_Wrap (BufferSubData, void,(GLenum, GLintptr, GLsizeiptr, GLvoidP)) | |
BGL_Wrap (DeleteBuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (DeleteQueries, void,(GLsizei, GLuintP)) | |
BGL_Wrap (EndQuery, void,(GLenum)) | |
BGL_Wrap (GenBuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (GenQueries, void,(GLsizei, GLuintP)) | |
BGL_Wrap (GetBufferParameteriv, void,(GLenum, GLenum, GLintP)) | |
BGL_Wrap (GetBufferPointerv, void,(GLenum, GLenum, GLvoidP)) | |
BGL_Wrap (GetBufferSubData, void,(GLenum, GLintptr, GLsizeiptr, GLvoidP)) | |
BGL_Wrap (GetQueryObjectiv, void,(GLuint, GLenum, GLintP)) | |
BGL_Wrap (GetQueryObjectuiv, void,(GLuint, GLenum, GLuintP)) | |
BGL_Wrap (GetQueryiv, void,(GLenum, GLenum, GLintP)) | |
BGL_Wrap (IsBuffer, GLboolean,(GLuint)) | |
BGL_Wrap (IsQuery, GLboolean,(GLuint)) | |
BGL_Wrap (MapBuffer, void,(GLenum, GLenum)) | |
BGL_Wrap (UnmapBuffer, GLboolean,(GLenum)) | |
BGL_Wrap (AttachShader, void,(GLuint, GLuint)) | |
BGL_Wrap (BindAttribLocation, void,(GLuint, GLuint, GLstring)) | |
BGL_Wrap (BlendEquationSeparate, void,(GLenum, GLenum)) | |
BGL_Wrap (CompileShader, void,(GLuint)) | |
BGL_Wrap (CreateProgram, GLuint,(void)) | |
BGL_Wrap (CreateShader, GLuint,(GLenum)) | |
BGL_Wrap (DeleteProgram, void,(GLuint)) | |
BGL_Wrap (DeleteShader, void,(GLuint)) | |
BGL_Wrap (DetachShader, void,(GLuint, GLuint)) | |
BGL_Wrap (DisableVertexAttribArray, void,(GLuint)) | |
BGL_Wrap (DrawBuffers, void,(GLsizei, GLenumP)) | |
BGL_Wrap (EnableVertexAttribArray, void,(GLuint)) | |
BGL_Wrap (GetActiveAttrib, void,(GLuint, GLuint, GLsizei, GLsizeiP, GLintP, GLenumP, GLcharP)) | |
BGL_Wrap (GetActiveUniform, void,(GLuint, GLuint, GLsizei, GLsizeiP, GLintP, GLenumP, GLcharP)) | |
BGL_Wrap (GetAttachedShaders, void,(GLuint, GLsizei, GLsizeiP, GLuintP)) | |
BGL_Wrap (GetAttribLocation, GLint,(GLuint, GLstring)) | |
BGL_Wrap (GetProgramInfoLog, void,(GLuint, GLsizei, GLsizeiP, GLcharP)) | |
BGL_Wrap (GetProgramiv, void,(GLuint, GLenum, GLintP)) | |
BGL_Wrap (GetShaderInfoLog, void,(GLuint, GLsizei, GLsizeiP, GLcharP)) | |
BGL_Wrap (GetShaderSource, void,(GLuint, GLsizei, GLsizeiP, GLcharP)) | |
BGL_Wrap (GetShaderiv, void,(GLuint, GLenum, GLintP)) | |
BGL_Wrap (GetUniformLocation, GLint,(GLuint, GLstring)) | |
BGL_Wrap (GetUniformfv, void,(GLuint, GLint, GLfloatP)) | |
BGL_Wrap (GetUniformiv, void,(GLuint, GLint, GLintP)) | |
BGL_Wrap (GetVertexAttribPointerv, void,(GLuint, GLenum, GLvoidP)) | |
BGL_Wrap (GetVertexAttribdv, void,(GLuint, GLenum, GLdoubleP)) | |
BGL_Wrap (GetVertexAttribfv, void,(GLuint, GLenum, GLfloatP)) | |
BGL_Wrap (GetVertexAttribiv, void,(GLuint, GLenum, GLintP)) | |
BGL_Wrap (IsProgram, GLboolean,(GLuint)) | |
BGL_Wrap (IsShader, GLboolean,(GLuint)) | |
BGL_Wrap (LinkProgram, void,(GLuint)) | |
BGL_Wrap (StencilFuncSeparate, void,(GLenum, GLenum, GLint, GLuint)) | |
BGL_Wrap (StencilMaskSeparate, void,(GLenum, GLuint)) | |
BGL_Wrap (StencilOpSeparate, void,(GLenum, GLenum, GLenum, GLenum)) | |
BGL_Wrap (Uniform1f, void,(GLint, GLfloat)) | |
BGL_Wrap (Uniform1fv, void,(GLint, GLsizei, GLfloatP)) | |
BGL_Wrap (Uniform1i, void,(GLint, GLint)) | |
BGL_Wrap (Uniform1iv, void,(GLint, GLsizei, GLintP)) | |
BGL_Wrap (Uniform2f, void,(GLint, GLfloat, GLfloat)) | |
BGL_Wrap (Uniform2fv, void,(GLint, GLsizei, GLfloatP)) | |
BGL_Wrap (Uniform2i, void,(GLint, GLint, GLint)) | |
BGL_Wrap (Uniform2iv, void,(GLint, GLsizei, GLintP)) | |
BGL_Wrap (Uniform3f, void,(GLint, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (Uniform3fv, void,(GLint, GLsizei, GLfloatP)) | |
BGL_Wrap (Uniform3i, void,(GLint, GLint, GLint, GLint)) | |
BGL_Wrap (Uniform3iv, void,(GLint, GLsizei, GLintP)) | |
BGL_Wrap (Uniform4f, void,(GLint, GLfloat, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (Uniform4fv, void,(GLint, GLsizei, GLfloatP)) | |
BGL_Wrap (Uniform4i, void,(GLint, GLint, GLint, GLint, GLint)) | |
BGL_Wrap (Uniform4iv, void,(GLint, GLsizei, GLintP)) | |
BGL_Wrap (UniformMatrix2fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix3fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix4fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UseProgram, void,(GLuint)) | |
BGL_Wrap (ValidateProgram, void,(GLuint)) | |
BGL_Wrap (VertexAttrib1d, void,(GLuint, GLdouble)) | |
BGL_Wrap (VertexAttrib1dv, void,(GLuint, GLdoubleP)) | |
BGL_Wrap (VertexAttrib1f, void,(GLuint, GLfloat)) | |
BGL_Wrap (VertexAttrib1fv, void,(GLuint, GLfloatP)) | |
BGL_Wrap (VertexAttrib1s, void,(GLuint, GLshort)) | |
BGL_Wrap (VertexAttrib1sv, void,(GLuint, GLshortP)) | |
BGL_Wrap (VertexAttrib2d, void,(GLuint, GLdouble, GLdouble)) | |
BGL_Wrap (VertexAttrib2dv, void,(GLuint, GLdoubleP)) | |
BGL_Wrap (VertexAttrib2f, void,(GLuint, GLfloat, GLfloat)) | |
BGL_Wrap (VertexAttrib2fv, void,(GLuint, GLfloatP)) | |
BGL_Wrap (VertexAttrib2s, void,(GLuint, GLshort, GLshort)) | |
BGL_Wrap (VertexAttrib2sv, void,(GLuint, GLshortP)) | |
BGL_Wrap (VertexAttrib3d, void,(GLuint, GLdouble, GLdouble, GLdouble)) | |
BGL_Wrap (VertexAttrib3dv, void,(GLuint, GLdoubleP)) | |
BGL_Wrap (VertexAttrib3f, void,(GLuint, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (VertexAttrib3fv, void,(GLuint, GLfloatP)) | |
BGL_Wrap (VertexAttrib3s, void,(GLuint, GLshort, GLshort, GLshort)) | |
BGL_Wrap (VertexAttrib3sv, void,(GLuint, GLshortP)) | |
BGL_Wrap (VertexAttrib4Nbv, void,(GLuint, GLbyteP)) | |
BGL_Wrap (VertexAttrib4Niv, void,(GLuint, GLintP)) | |
BGL_Wrap (VertexAttrib4Nsv, void,(GLuint, GLshortP)) | |
BGL_Wrap (VertexAttrib4Nub, void,(GLuint, GLubyte, GLubyte, GLubyte, GLubyte)) | |
BGL_Wrap (VertexAttrib4Nubv, void,(GLuint, GLubyteP)) | |
BGL_Wrap (VertexAttrib4Nuiv, void,(GLuint, GLuintP)) | |
BGL_Wrap (VertexAttrib4Nusv, void,(GLuint, GLushortP)) | |
BGL_Wrap (VertexAttrib4bv, void,(GLuint, GLbyteP)) | |
BGL_Wrap (VertexAttrib4d, void,(GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) | |
BGL_Wrap (VertexAttrib4dv, void,(GLuint, GLdoubleP)) | |
BGL_Wrap (VertexAttrib4f, void,(GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) | |
BGL_Wrap (VertexAttrib4fv, void,(GLuint, GLfloatP)) | |
BGL_Wrap (VertexAttrib4iv, void,(GLuint, GLintP)) | |
BGL_Wrap (VertexAttrib4s, void,(GLuint, GLshort, GLshort, GLshort, GLshort)) | |
BGL_Wrap (VertexAttrib4sv, void,(GLuint, GLshortP)) | |
BGL_Wrap (VertexAttrib4ubv, void,(GLuint, GLubyteP)) | |
BGL_Wrap (VertexAttrib4uiv, void,(GLuint, GLuintP)) | |
BGL_Wrap (VertexAttrib4usv, void,(GLuint, GLushortP)) | |
BGL_Wrap (VertexAttribPointer, void,(GLuint, GLint, GLenum, GLboolean, GLsizei, GLvoidP)) | |
BGL_Wrap (UniformMatrix2x3fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix2x4fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix3x2fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix3x4fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix4x2fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (UniformMatrix4x3fv, void,(GLint, GLsizei, GLboolean, GLfloatP)) | |
BGL_Wrap (BindFramebuffer, void,(GLenum, GLuint)) | |
BGL_Wrap (BindRenderbuffer, void,(GLenum, GLuint)) | |
BGL_Wrap (BindVertexArray, void,(GLuint)) | |
BGL_Wrap (BlitFramebuffer, void,(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum)) | |
BGL_Wrap (CheckFramebufferStatus, GLenum,(GLenum)) | |
BGL_Wrap (DeleteFramebuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (DeleteRenderbuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (DeleteVertexArrays, void,(GLsizei, GLuintP)) | |
BGL_Wrap (FramebufferRenderbuffer, void,(GLenum, GLenum, GLenum, GLuint)) | |
BGL_Wrap (GenFramebuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (GenRenderbuffers, void,(GLsizei, GLuintP)) | |
BGL_Wrap (GenVertexArrays, void,(GLsizei, GLuintP)) | |
BGL_Wrap (GetStringi, GLstring,(GLenum, GLuint)) | |
BGL_Wrap (IsVertexArray, GLboolean,(GLuint)) | |
BGL_Wrap (RenderbufferStorage, void,(GLenum, GLenum, GLsizei, GLsizei)) | |
BGL_Wrap (VertexAttribIPointer, void,(GLuint, GLint, GLenum, GLsizei, GLvoidP)) | |
BGL_Wrap (BindBufferBase, void,(GLenum, GLuint, GLuint)) | |
BGL_Wrap (BindBufferRange, void,(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr)) | |
BGL_Wrap (GetActiveUniformBlockName, void,(GLuint, GLuint, GLsizei, GLsizeiP, GLcharP)) | |
BGL_Wrap (GetActiveUniformBlockiv, void,(GLuint, GLuint, GLenum, GLintP)) | |
BGL_Wrap (GetActiveUniformName, void,(GLuint, GLuint, GLsizei, GLsizeiP, GLcharP)) | |
BGL_Wrap (GetActiveUniformsiv, void,(GLuint, GLsizei, GLuintP, GLenum, GLintP)) | |
BGL_Wrap (GetIntegeri_v, void,(GLenum, GLuint, GLintP)) | |
BGL_Wrap (GetUniformBlockIndex, GLuint,(GLuint, GLstring)) | |
BGL_Wrap (GetUniformIndices, void,(GLuint, GLsizei, GLcharP, GLuintP)) | |
BGL_Wrap (UniformBlockBinding, void,(GLuint, GLuint, GLuint)) | |
BGL_Wrap (FramebufferTexture, void,(GLenum, GLenum, GLuint, GLint)) | |
BGL_Wrap (GetBufferParameteri64v, void,(GLenum, GLenum, GLint64P)) | |
BGL_Wrap (GetInteger64i_v, void,(GLenum, GLuint, GLint64P)) | |
BGL_Wrap (GetMultisamplefv, void,(GLenum, GLuint, GLfloatP)) | |
BGL_Wrap (SampleMaski, void,(GLuint, GLbitfield)) | |
BGL_Wrap (TexImage2DMultisample, void,(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean)) | |
BGL_Wrap (TexImage3DMultisample, void,(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean)) | |
Module Definition | |
#define | PY_MOD_ADD_METHOD(func) |
#define | PY_DICT_ADD_INT(x) py_module_dict_add_int(dict, #x, x) |
#define | PY_DICT_ADD_INT64(x) py_module_dict_add_int64(dict, #x, x) |
static struct PyModuleDef | BGL_module_def |
static void | py_module_dict_add_int (PyObject *dict, const char *name, int value) |
static void | py_module_dict_add_int64 (PyObject *dict, const char *name, int64_t value) |
static void | py_module_dict_add_method (PyObject *submodule, PyObject *dict, PyMethodDef *method_def, bool is_valid) |
static void | init_bgl_version_1_0_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_1_1_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_1_2_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_1_3_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_1_4_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_1_5_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_2_0_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_2_1_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_3_0_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_3_1_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_3_2_methods (PyObject *submodule, PyObject *dict) |
static void | init_bgl_version_3_3_methods (PyObject *UNUSED(submodule), PyObject *UNUSED(dict)) |
static void | init_bgl_version_1_1_constants (PyObject *dict) |
static void | init_bgl_version_1_2_constants (PyObject *dict) |
static void | init_bgl_version_1_3_constants (PyObject *dict) |
static void | init_bgl_version_1_4_constants (PyObject *dict) |
static void | init_bgl_version_1_5_constants (PyObject *dict) |
static void | init_bgl_version_2_0_constants (PyObject *dict) |
static void | init_bgl_version_2_1_constants (PyObject *dict) |
static void | init_bgl_version_3_0_constants (PyObject *dict) |
static void | init_bgl_version_3_1_constants (PyObject *dict) |
static void | init_bgl_version_3_2_constants (PyObject *dict) |
static void | init_bgl_version_3_3_constants (PyObject *dict) |
PyObject * | BPyInit_bgl (void) |
static PyObject * | Method_ShaderSource (PyObject *UNUSED(self), PyObject *args) |
This file is the 'bgl' module which wraps OpenGL functions and constants, allowing script writers to make OpenGL calls in their Python scripts.
Definition in file bgl.c.
#define _arg_def10 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9, | |||
a10 | |||
) |
#define _arg_def11 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9, | |||
a10, | |||
a11 | |||
) |
#define _arg_def2 | ( | a1, | |
a2 | |||
) |
#define _arg_def3 | ( | a1, | |
a2, | |||
a3 | |||
) |
#define _arg_def4 | ( | a1, | |
a2, | |||
a3, | |||
a4 | |||
) |
#define _arg_def5 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5 | |||
) |
#define _arg_def6 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6 | |||
) |
#define _arg_def7 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7 | |||
) |
#define _arg_def8 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8 | |||
) |
#define _arg_def9 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9 | |||
) |
#define _arg_ref11 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9, | |||
a10, | |||
a11 | |||
) | _arg_ref10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10), a11##_ref(11) |
#define _arg_str11 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9, | |||
a10, | |||
a11 | |||
) | _arg_str10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) a11##_str |
#define _arg_var11 | ( | a1, | |
a2, | |||
a3, | |||
a4, | |||
a5, | |||
a6, | |||
a7, | |||
a8, | |||
a9, | |||
a10, | |||
a11 | |||
) | _arg_var10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10), a11##_var(11) |
#define arg_def | ( | ... | ) | VA_NARGS_CALL_OVERLOAD(_arg_def, __VA_ARGS__) |
#define arg_ref | ( | ... | ) | VA_NARGS_CALL_OVERLOAD(_arg_ref, __VA_ARGS__) |
#define arg_str | ( | ... | ) | VA_NARGS_CALL_OVERLOAD(_arg_str, __VA_ARGS__) |
#define arg_var | ( | ... | ) | VA_NARGS_CALL_OVERLOAD(_arg_var, __VA_ARGS__) |
#define GLbitfield_def | ( | num | ) | /* unsigned */ int GLbitfield_var(num) |
#define GLboolean_def | ( | num | ) | /* unsigned */ char GLboolean_var(num) |
#define GLbooleanP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLbooleanP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLbyteP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLcharP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLcharP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLdouble_def | ( | num | ) | double GLdouble_var(num) |
#define GLdoubleP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLdoubleP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLenum_def | ( | num | ) | /* unsigned */ int GLenum_var(num) |
#define GLenumP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLfloat_def | ( | num | ) | float GLfloat_var(num) |
#define GLfloatP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLfloatP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLint64P_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLint64P_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLintP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLintptr_def | ( | num | ) | size_t GLintptr_var(num) |
#define GLshort_def | ( | num | ) | short GLshort_var(num) |
#define GLshortP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLshortP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLsizei_def | ( | num | ) | size_t GLsizei_var(num) |
#define GLsizeiP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLsizeiP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLsizeiptr_def | ( | num | ) | size_t GLsizeiptr_var(num) |
#define GLstring_def | ( | number | ) | char *GLstring_var(number) |
#define GLubyte_def | ( | num | ) | /* unsigned */ char GLubyte_var(num) |
#define GLubyteP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLubyteP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLuint_def | ( | num | ) | /* unsigned */ int GLuint_var(num) |
#define GLuintP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLushortP_ref | ( | number | ) | &BGL_bufferType, &bgl_buffer##number |
#define GLushortP_var | ( | number | ) | (bgl_buffer##number)->buf.asvoid |
#define GLvoidP_def | ( | number | ) | BufferOrOffset bgl_buffer##number |
#define GLvoidP_ref | ( | number | ) | BGL_BufferOrOffsetConverter, &bgl_buffer##number |
#define GLvoidP_var | ( | number | ) |
#define PY_DICT_ADD_INT | ( | x | ) | py_module_dict_add_int(dict, #x, x) |
#define PY_DICT_ADD_INT64 | ( | x | ) | py_module_dict_add_int64(dict, #x, x) |
#define PY_MOD_ADD_METHOD | ( | func | ) |
#define ret_ret_GLstring |
typedef struct BufferOrOffset BufferOrOffset |
|
static |
Create a buffer object
dimensions | An array of ndimensions integers representing the size of each dimension. |
initbuffer | When not NULL holds a contiguous buffer with the correct format from which the buffer will be initialized |
Definition at line 655 of file bgl.c.
References BGL_MakeBuffer_FromData(), BGL_typeSize(), buffer, MEM_mallocN, NULL, size(), and type.
Referenced by Buffer_new().
|
static |
Definition at line 639 of file bgl.c.
References BGL_bufferType, buffer, MEM_mallocN, and type.
Referenced by BGL_MakeBuffer(), Buffer_item(), and Buffer_new().
Definition at line 1100 of file bgl.c.
Referenced by Method_ShaderSource().
int BGL_typeSize | ( | int | type | ) |
Definition at line 432 of file bgl.c.
References double(), float(), and type.
Referenced by BGL_MakeBuffer(), and Buffer_item().
BGL_Wrap | ( | ActiveTexture | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | AttachShader | , |
void | , | ||
(GLuint, GLuint) | |||
) |
BGL_Wrap | ( | BeginQuery | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | BindAttribLocation | , |
void | , | ||
(GLuint, GLuint, GLstring) | |||
) |
BGL_Wrap | ( | BindBuffer | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | BindBufferBase | , |
void | , | ||
(GLenum, GLuint, GLuint) | |||
) |
BGL_Wrap | ( | BindBufferRange | , |
void | , | ||
(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr) | |||
) |
BGL_Wrap | ( | BindFramebuffer | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | BindRenderbuffer | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | BindTexture | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | BindVertexArray | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | BlendColor | , |
void | , | ||
(GLfloat, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | BlendEquation | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | BlendEquationSeparate | , |
void | , | ||
(GLenum, GLenum) | |||
) |
BGL_Wrap | ( | BlendFunc | , |
void | , | ||
(GLenum, GLenum) | |||
) |
BGL_Wrap | ( | BlitFramebuffer | , |
void | , | ||
(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum) | |||
) |
BGL_Wrap | ( | BufferData | , |
void | , | ||
(GLenum, GLsizeiptr, GLvoidP, GLenum) | |||
) |
BGL_Wrap | ( | BufferSubData | , |
void | , | ||
(GLenum, GLintptr, GLsizeiptr, GLvoidP) | |||
) |
BGL_Wrap | ( | CheckFramebufferStatus | , |
GLenum | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | Clear | , |
void | , | ||
(GLbitfield) | |||
) |
BGL_Wrap | ( | ClearColor | , |
void | , | ||
(GLfloat, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | ClearDepth | , |
void | , | ||
(GLdouble) | |||
) |
BGL_Wrap | ( | ClearStencil | , |
void | , | ||
(GLint) | |||
) |
BGL_Wrap | ( | ColorMask | , |
void | , | ||
(GLboolean, GLboolean, GLboolean, GLboolean) | |||
) |
BGL_Wrap | ( | CompileShader | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | CompressedTexImage1D | , |
void | , | ||
(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CompressedTexImage2D | , |
void | , | ||
(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CompressedTexImage3D | , |
void | , | ||
(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CompressedTexSubImage1D | , |
void | , | ||
(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CompressedTexSubImage2D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CompressedTexSubImage3D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | CopyTexImage1D | , |
void | , | ||
(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) | |||
) |
BGL_Wrap | ( | CopyTexImage2D | , |
void | , | ||
(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) | |||
) |
BGL_Wrap | ( | CopyTexSubImage1D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLint, GLsizei) | |||
) |
BGL_Wrap | ( | CopyTexSubImage2D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) | |||
) |
BGL_Wrap | ( | CopyTexSubImage3D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) | |||
) |
BGL_Wrap | ( | CreateProgram | , |
GLuint | , | ||
(void) | |||
) |
BGL_Wrap | ( | CreateShader | , |
GLuint | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | CullFace | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | DeleteBuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DeleteFramebuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DeleteProgram | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | DeleteQueries | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DeleteRenderbuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DeleteShader | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | DeleteTextures | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DeleteVertexArrays | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | DepthFunc | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | DepthMask | , |
void | , | ||
(GLboolean) | |||
) |
BGL_Wrap | ( | DepthRange | , |
void | , | ||
(GLdouble, GLdouble) | |||
) |
BGL_Wrap | ( | DetachShader | , |
void | , | ||
(GLuint, GLuint) | |||
) |
BGL_Wrap | ( | Disable | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | DisableVertexAttribArray | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | DrawArrays | , |
void | , | ||
(GLenum, GLint, GLsizei) | |||
) |
BGL_Wrap | ( | DrawBuffer | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | DrawBuffers | , |
void | , | ||
(GLsizei, GLenumP) | |||
) |
BGL_Wrap | ( | DrawElements | , |
void | , | ||
(GLenum, GLsizei, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | DrawRangeElements | , |
void | , | ||
(GLenum, GLuint, GLuint, GLsizei, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | Enable | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | EnableVertexAttribArray | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | EndQuery | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | FramebufferRenderbuffer | , |
void | , | ||
(GLenum, GLenum, GLenum, GLuint) | |||
) |
BGL_Wrap | ( | FramebufferTexture | , |
void | , | ||
(GLenum, GLenum, GLuint, GLint) | |||
) |
BGL_Wrap | ( | FrontFace | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | GenBuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GenFramebuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GenQueries | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GenRenderbuffers | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GenTextures | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GenVertexArrays | , |
void | , | ||
(GLsizei, GLuintP) | |||
) |
BGL_Wrap | ( | GetActiveAttrib | , |
void | , | ||
(GLuint, GLuint, GLsizei, GLsizeiP, GLintP, GLenumP, GLcharP) | |||
) |
BGL_Wrap | ( | GetActiveUniform | , |
void | , | ||
(GLuint, GLuint, GLsizei, GLsizeiP, GLintP, GLenumP, GLcharP) | |||
) |
BGL_Wrap | ( | GetActiveUniformBlockiv | , |
void | , | ||
(GLuint, GLuint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetActiveUniformBlockName | , |
void | , | ||
(GLuint, GLuint, GLsizei, GLsizeiP, GLcharP) | |||
) |
BGL_Wrap | ( | GetActiveUniformName | , |
void | , | ||
(GLuint, GLuint, GLsizei, GLsizeiP, GLcharP) | |||
) |
BGL_Wrap | ( | GetActiveUniformsiv | , |
void | , | ||
(GLuint, GLsizei, GLuintP, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetAttachedShaders | , |
void | , | ||
(GLuint, GLsizei, GLsizeiP, GLuintP) | |||
) |
BGL_Wrap | ( | GetAttribLocation | , |
GLint | , | ||
(GLuint, GLstring) | |||
) |
BGL_Wrap | ( | GetBooleanv | , |
void | , | ||
(GLenum, GLbooleanP) | |||
) |
BGL_Wrap | ( | GetBufferParameteri64v | , |
void | , | ||
(GLenum, GLenum, GLint64P) | |||
) |
BGL_Wrap | ( | GetBufferParameteriv | , |
void | , | ||
(GLenum, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetBufferPointerv | , |
void | , | ||
(GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | GetBufferSubData | , |
void | , | ||
(GLenum, GLintptr, GLsizeiptr, GLvoidP) | |||
) |
BGL_Wrap | ( | GetCompressedTexImage | , |
void | , | ||
(GLenum, GLint, GLvoidP) | |||
) |
BGL_Wrap | ( | GetDoublev | , |
void | , | ||
(GLenum, GLdoubleP) | |||
) |
BGL_Wrap | ( | GetError | , |
GLenum | , | ||
(void) | |||
) |
BGL_Wrap | ( | GetFloatv | , |
void | , | ||
(GLenum, GLfloatP) | |||
) |
BGL_Wrap | ( | GetInteger64i_v | , |
void | , | ||
(GLenum, GLuint, GLint64P) | |||
) |
BGL_Wrap | ( | GetIntegeri_v | , |
void | , | ||
(GLenum, GLuint, GLintP) | |||
) |
BGL_Wrap | ( | GetIntegerv | , |
void | , | ||
(GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetMultisamplefv | , |
void | , | ||
(GLenum, GLuint, GLfloatP) | |||
) |
BGL_Wrap | ( | GetProgramInfoLog | , |
void | , | ||
(GLuint, GLsizei, GLsizeiP, GLcharP) | |||
) |
BGL_Wrap | ( | GetProgramiv | , |
void | , | ||
(GLuint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetQueryiv | , |
void | , | ||
(GLenum, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetQueryObjectiv | , |
void | , | ||
(GLuint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetQueryObjectuiv | , |
void | , | ||
(GLuint, GLenum, GLuintP) | |||
) |
BGL_Wrap | ( | GetShaderInfoLog | , |
void | , | ||
(GLuint, GLsizei, GLsizeiP, GLcharP) | |||
) |
BGL_Wrap | ( | GetShaderiv | , |
void | , | ||
(GLuint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetShaderSource | , |
void | , | ||
(GLuint, GLsizei, GLsizeiP, GLcharP) | |||
) |
BGL_Wrap | ( | GetString | , |
GLstring | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | GetStringi | , |
GLstring | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | GetTexImage | , |
void | , | ||
(GLenum, GLint, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | GetTexLevelParameterfv | , |
void | , | ||
(GLenum, GLint, GLenum, GLfloatP) | |||
) |
BGL_Wrap | ( | GetTexLevelParameteriv | , |
void | , | ||
(GLenum, GLint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetTexParameterfv | , |
void | , | ||
(GLenum, GLenum, GLfloatP) | |||
) |
BGL_Wrap | ( | GetTexParameteriv | , |
void | , | ||
(GLenum, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetUniformBlockIndex | , |
GLuint | , | ||
(GLuint, GLstring) | |||
) |
BGL_Wrap | ( | GetUniformfv | , |
void | , | ||
(GLuint, GLint, GLfloatP) | |||
) |
BGL_Wrap | ( | GetUniformIndices | , |
void | , | ||
(GLuint, GLsizei, GLcharP, GLuintP) | |||
) |
BGL_Wrap | ( | GetUniformiv | , |
void | , | ||
(GLuint, GLint, GLintP) | |||
) |
BGL_Wrap | ( | GetUniformLocation | , |
GLint | , | ||
(GLuint, GLstring) | |||
) |
BGL_Wrap | ( | GetVertexAttribdv | , |
void | , | ||
(GLuint, GLenum, GLdoubleP) | |||
) |
BGL_Wrap | ( | GetVertexAttribfv | , |
void | , | ||
(GLuint, GLenum, GLfloatP) | |||
) |
BGL_Wrap | ( | GetVertexAttribiv | , |
void | , | ||
(GLuint, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | GetVertexAttribPointerv | , |
void | , | ||
(GLuint, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | Hint | , |
void | , | ||
(GLenum, GLenum) | |||
) |
BGL_Wrap | ( | IsBuffer | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | IsEnabled | , |
GLboolean | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | IsProgram | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | IsQuery | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | IsShader | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | IsTexture | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | IsVertexArray | , |
GLboolean | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | LineWidth | , |
void | , | ||
(GLfloat) | |||
) |
BGL_Wrap | ( | LinkProgram | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | LogicOp | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | MapBuffer | , |
void | , | ||
(GLenum, GLenum) | |||
) |
BGL_Wrap | ( | PixelStoref | , |
void | , | ||
(GLenum, GLfloat) | |||
) |
BGL_Wrap | ( | PixelStorei | , |
void | , | ||
(GLenum, GLint) | |||
) |
BGL_Wrap | ( | PointSize | , |
void | , | ||
(GLfloat) | |||
) |
BGL_Wrap | ( | PolygonMode | , |
void | , | ||
(GLenum, GLenum) | |||
) |
BGL_Wrap | ( | PolygonOffset | , |
void | , | ||
(GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | ReadBuffer | , |
void | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | ReadPixels | , |
void | , | ||
(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | RenderbufferStorage | , |
void | , | ||
(GLenum, GLenum, GLsizei, GLsizei) | |||
) |
BGL_Wrap | ( | SampleCoverage | , |
void | , | ||
(GLfloat, GLboolean) | |||
) |
BGL_Wrap | ( | SampleMaski | , |
void | , | ||
(GLuint, GLbitfield) | |||
) |
BGL_Wrap | ( | Scissor | , |
void | , | ||
(GLint, GLint, GLsizei, GLsizei) | |||
) |
BGL_Wrap | ( | StencilFunc | , |
void | , | ||
(GLenum, GLint, GLuint) | |||
) |
BGL_Wrap | ( | StencilFuncSeparate | , |
void | , | ||
(GLenum, GLenum, GLint, GLuint) | |||
) |
BGL_Wrap | ( | StencilMask | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | StencilMaskSeparate | , |
void | , | ||
(GLenum, GLuint) | |||
) |
BGL_Wrap | ( | StencilOp | , |
void | , | ||
(GLenum, GLenum, GLenum) | |||
) |
BGL_Wrap | ( | StencilOpSeparate | , |
void | , | ||
(GLenum, GLenum, GLenum, GLenum) | |||
) |
BGL_Wrap | ( | TexImage1D | , |
void | , | ||
(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | TexImage2D | , |
void | , | ||
(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | TexImage2DMultisample | , |
void | , | ||
(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean) | |||
) |
BGL_Wrap | ( | TexImage3D | , |
void | , | ||
(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | TexImage3DMultisample | , |
void | , | ||
(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean) | |||
) |
BGL_Wrap | ( | TexParameterf | , |
void | , | ||
(GLenum, GLenum, GLfloat) | |||
) |
BGL_Wrap | ( | TexParameterfv | , |
void | , | ||
(GLenum, GLenum, GLfloatP) | |||
) |
BGL_Wrap | ( | TexParameteri | , |
void | , | ||
(GLenum, GLenum, GLint) | |||
) |
BGL_Wrap | ( | TexParameteriv | , |
void | , | ||
(GLenum, GLenum, GLintP) | |||
) |
BGL_Wrap | ( | TexSubImage1D | , |
void | , | ||
(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | TexSubImage2D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | TexSubImage3D | , |
void | , | ||
(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLvoidP) | |||
) |
BGL_Wrap | ( | Uniform1f | , |
void | , | ||
(GLint, GLfloat) | |||
) |
BGL_Wrap | ( | Uniform1fv | , |
void | , | ||
(GLint, GLsizei, GLfloatP) | |||
) |
BGL_Wrap | ( | Uniform1i | , |
void | , | ||
(GLint, GLint) | |||
) |
BGL_Wrap | ( | Uniform1iv | , |
void | , | ||
(GLint, GLsizei, GLintP) | |||
) |
BGL_Wrap | ( | Uniform2f | , |
void | , | ||
(GLint, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | Uniform2fv | , |
void | , | ||
(GLint, GLsizei, GLfloatP) | |||
) |
BGL_Wrap | ( | Uniform2i | , |
void | , | ||
(GLint, GLint, GLint) | |||
) |
BGL_Wrap | ( | Uniform2iv | , |
void | , | ||
(GLint, GLsizei, GLintP) | |||
) |
BGL_Wrap | ( | Uniform3f | , |
void | , | ||
(GLint, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | Uniform3fv | , |
void | , | ||
(GLint, GLsizei, GLfloatP) | |||
) |
BGL_Wrap | ( | Uniform3i | , |
void | , | ||
(GLint, GLint, GLint, GLint) | |||
) |
BGL_Wrap | ( | Uniform3iv | , |
void | , | ||
(GLint, GLsizei, GLintP) | |||
) |
BGL_Wrap | ( | Uniform4f | , |
void | , | ||
(GLint, GLfloat, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | Uniform4fv | , |
void | , | ||
(GLint, GLsizei, GLfloatP) | |||
) |
BGL_Wrap | ( | Uniform4i | , |
void | , | ||
(GLint, GLint, GLint, GLint, GLint) | |||
) |
BGL_Wrap | ( | Uniform4iv | , |
void | , | ||
(GLint, GLsizei, GLintP) | |||
) |
BGL_Wrap | ( | UniformBlockBinding | , |
void | , | ||
(GLuint, GLuint, GLuint) | |||
) |
BGL_Wrap | ( | UniformMatrix2fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix2x3fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix2x4fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix3fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix3x2fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix3x4fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix4fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix4x2fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UniformMatrix4x3fv | , |
void | , | ||
(GLint, GLsizei, GLboolean, GLfloatP) | |||
) |
BGL_Wrap | ( | UnmapBuffer | , |
GLboolean | , | ||
(GLenum) | |||
) |
BGL_Wrap | ( | UseProgram | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | ValidateProgram | , |
void | , | ||
(GLuint) | |||
) |
BGL_Wrap | ( | VertexAttrib1d | , |
void | , | ||
(GLuint, GLdouble) | |||
) |
BGL_Wrap | ( | VertexAttrib1dv | , |
void | , | ||
(GLuint, GLdoubleP) | |||
) |
BGL_Wrap | ( | VertexAttrib1f | , |
void | , | ||
(GLuint, GLfloat) | |||
) |
BGL_Wrap | ( | VertexAttrib1fv | , |
void | , | ||
(GLuint, GLfloatP) | |||
) |
BGL_Wrap | ( | VertexAttrib1s | , |
void | , | ||
(GLuint, GLshort) | |||
) |
BGL_Wrap | ( | VertexAttrib1sv | , |
void | , | ||
(GLuint, GLshortP) | |||
) |
BGL_Wrap | ( | VertexAttrib2d | , |
void | , | ||
(GLuint, GLdouble, GLdouble) | |||
) |
BGL_Wrap | ( | VertexAttrib2dv | , |
void | , | ||
(GLuint, GLdoubleP) | |||
) |
BGL_Wrap | ( | VertexAttrib2f | , |
void | , | ||
(GLuint, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | VertexAttrib2fv | , |
void | , | ||
(GLuint, GLfloatP) | |||
) |
BGL_Wrap | ( | VertexAttrib2s | , |
void | , | ||
(GLuint, GLshort, GLshort) | |||
) |
BGL_Wrap | ( | VertexAttrib2sv | , |
void | , | ||
(GLuint, GLshortP) | |||
) |
BGL_Wrap | ( | VertexAttrib3d | , |
void | , | ||
(GLuint, GLdouble, GLdouble, GLdouble) | |||
) |
BGL_Wrap | ( | VertexAttrib3dv | , |
void | , | ||
(GLuint, GLdoubleP) | |||
) |
BGL_Wrap | ( | VertexAttrib3f | , |
void | , | ||
(GLuint, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | VertexAttrib3fv | , |
void | , | ||
(GLuint, GLfloatP) | |||
) |
BGL_Wrap | ( | VertexAttrib3s | , |
void | , | ||
(GLuint, GLshort, GLshort, GLshort) | |||
) |
BGL_Wrap | ( | VertexAttrib3sv | , |
void | , | ||
(GLuint, GLshortP) | |||
) |
BGL_Wrap | ( | VertexAttrib4bv | , |
void | , | ||
(GLuint, GLbyteP) | |||
) |
BGL_Wrap | ( | VertexAttrib4d | , |
void | , | ||
(GLuint, GLdouble, GLdouble, GLdouble, GLdouble) | |||
) |
BGL_Wrap | ( | VertexAttrib4dv | , |
void | , | ||
(GLuint, GLdoubleP) | |||
) |
BGL_Wrap | ( | VertexAttrib4f | , |
void | , | ||
(GLuint, GLfloat, GLfloat, GLfloat, GLfloat) | |||
) |
BGL_Wrap | ( | VertexAttrib4fv | , |
void | , | ||
(GLuint, GLfloatP) | |||
) |
BGL_Wrap | ( | VertexAttrib4iv | , |
void | , | ||
(GLuint, GLintP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nbv | , |
void | , | ||
(GLuint, GLbyteP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Niv | , |
void | , | ||
(GLuint, GLintP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nsv | , |
void | , | ||
(GLuint, GLshortP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nub | , |
void | , | ||
(GLuint, GLubyte, GLubyte, GLubyte, GLubyte) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nubv | , |
void | , | ||
(GLuint, GLubyteP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nuiv | , |
void | , | ||
(GLuint, GLuintP) | |||
) |
BGL_Wrap | ( | VertexAttrib4Nusv | , |
void | , | ||
(GLuint, GLushortP) | |||
) |
BGL_Wrap | ( | VertexAttrib4s | , |
void | , | ||
(GLuint, GLshort, GLshort, GLshort, GLshort) | |||
) |
BGL_Wrap | ( | VertexAttrib4sv | , |
void | , | ||
(GLuint, GLshortP) | |||
) |
BGL_Wrap | ( | VertexAttrib4ubv | , |
void | , | ||
(GLuint, GLubyteP) | |||
) |
BGL_Wrap | ( | VertexAttrib4uiv | , |
void | , | ||
(GLuint, GLuintP) | |||
) |
BGL_Wrap | ( | VertexAttrib4usv | , |
void | , | ||
(GLuint, GLushortP) | |||
) |
BGL_Wrap | ( | VertexAttribIPointer | , |
void | , | ||
(GLuint, GLint, GLenum, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | VertexAttribPointer | , |
void | , | ||
(GLuint, GLint, GLenum, GLboolean, GLsizei, GLvoidP) | |||
) |
BGL_Wrap | ( | Viewport | , |
void | , | ||
(GLint, GLint, GLsizei, GLsizei) | |||
) |
PyObject* BPyInit_bgl | ( | void | ) |
Definition at line 2599 of file bgl.c.
References BGL_bufferType, BGL_module_def, init_bgl_version_1_0_methods(), init_bgl_version_1_1_constants(), init_bgl_version_1_1_methods(), init_bgl_version_1_2_constants(), init_bgl_version_1_2_methods(), init_bgl_version_1_3_constants(), init_bgl_version_1_3_methods(), init_bgl_version_1_4_constants(), init_bgl_version_1_4_methods(), init_bgl_version_1_5_constants(), init_bgl_version_1_5_methods(), init_bgl_version_2_0_constants(), init_bgl_version_2_0_methods(), init_bgl_version_2_1_constants(), init_bgl_version_2_1_methods(), init_bgl_version_3_0_constants(), init_bgl_version_3_0_methods(), init_bgl_version_3_1_constants(), init_bgl_version_3_1_methods(), init_bgl_version_3_2_constants(), init_bgl_version_3_2_methods(), init_bgl_version_3_3_constants(), init_bgl_version_3_3_methods(), and NULL.
|
static |
Definition at line 880 of file bgl.c.
References Buffer_ass_slice(), Buffer_item(), ret, self, and v.
Referenced by Buffer_ass_slice(), and Buffer_ass_subscript().
|
static |
Definition at line 915 of file bgl.c.
References Buffer_ass_item(), count, err, and self.
Referenced by Buffer_ass_item(), Buffer_ass_subscript(), and Buffer_new().
|
static |
Definition at line 1000 of file bgl.c.
References Buffer_ass_item(), Buffer_ass_slice(), and self.
|
static |
Definition at line 819 of file bgl.c.
References BGL_MakeBuffer_FromData(), BGL_typeSize(), NULL, offset, and self.
Referenced by Buffer_ass_item(), Buffer_slice(), Buffer_subscript(), Buffer_to_list(), and Buffer_to_list_recursive().
|
static |
|
static |
Definition at line 709 of file bgl.c.
References BGL_MakeBuffer(), BGL_MakeBuffer_FromData(), buffer, Buffer_ass_slice(), compare_dimensions(), ELEM, gl_buffer_type_from_py_buffer(), init, MAX_DIMENSIONS, NULL, STRINGIFY, and type.
|
static |
Definition at line 1046 of file bgl.c.
References Buffer_to_list_recursive(), and self.
|
static |
Definition at line 857 of file bgl.c.
References Buffer_item(), count, and self.
Referenced by Buffer_subscript().
|
static |
Definition at line 964 of file bgl.c.
References Buffer_item(), Buffer_slice(), NULL, and self.
|
static |
Definition at line 515 of file bgl.c.
References Buffer_item(), and len.
Referenced by Buffer_to_list_recursive().
|
static |
Definition at line 527 of file bgl.c.
References Buffer_item(), Buffer_to_list(), len, and self.
Referenced by Buffer_repr().
|
static |
Definition at line 477 of file bgl.c.
Referenced by Buffer_new().
|
static |
Definition at line 449 of file bgl.c.
References PyC_StructFmt_type_from_str(), PyC_StructFmt_type_is_byte(), PyC_StructFmt_type_is_float_any(), and PyC_StructFmt_type_is_int_any().
Referenced by Buffer_new().
|
static |
Definition at line 1457 of file bgl.c.
References Flush(), and PY_MOD_ADD_METHOD.
Referenced by BPyInit_bgl().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 2510 of file bgl.c.
References PY_DICT_ADD_INT, and PY_DICT_ADD_INT64.
Referenced by BPyInit_bgl().
|
static |
|
static |
|
static |
Definition at line 1728 of file bgl.c.
Referenced by BPyInit_bgl().
|
static |
|
static |
Definition at line 2640 of file bgl.c.
References bgl_no_opengl_error(), and NULL.
|
static |
PyTypeObject BGL_bufferType |
The type object.
Definition at line 570 of file bgl.c.
Referenced by BGL_BufferOrOffsetConverter(), BGL_MakeBuffer_FromData(), and BPyInit_bgl().
|
static |
|
static |
|
static |
|
static |
|
static |