mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 13:22:19 +02:00
graphicsdriver/opengl/gl: Indentation
This commit is contained in:
parent
378be6be80
commit
3a0f8655e6
@ -7,23 +7,21 @@ package gl
|
|||||||
|
|
||||||
// #cgo darwin LDFLAGS: -framework OpenGL
|
// #cgo darwin LDFLAGS: -framework OpenGL
|
||||||
// #cgo linux freebsd LDFLAGS: -lGL
|
// #cgo linux freebsd LDFLAGS: -lGL
|
||||||
// #cgo windows LDFLAGS: -lopengl32
|
//
|
||||||
// #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
|
|
||||||
// #ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
// #define WIN32_LEAN_AND_MEAN 1
|
|
||||||
// #endif
|
|
||||||
// #include <windows.h>
|
|
||||||
// #endif
|
|
||||||
// #ifndef APIENTRY
|
// #ifndef APIENTRY
|
||||||
// #define APIENTRY
|
// #define APIENTRY
|
||||||
// #endif
|
// #endif
|
||||||
|
//
|
||||||
// #ifndef APIENTRYP
|
// #ifndef APIENTRYP
|
||||||
// #define APIENTRYP APIENTRY *
|
// #define APIENTRYP APIENTRY *
|
||||||
// #endif
|
// #endif
|
||||||
|
//
|
||||||
// #ifndef GLAPI
|
// #ifndef GLAPI
|
||||||
// #define GLAPI extern
|
// #define GLAPI extern
|
||||||
// #endif
|
// #endif
|
||||||
|
//
|
||||||
// #include <stddef.h>
|
// #include <stddef.h>
|
||||||
|
//
|
||||||
// #ifndef GLEXT_64_TYPES_DEFINED
|
// #ifndef GLEXT_64_TYPES_DEFINED
|
||||||
// /* This code block is duplicated in glxext.h, so must be protected */
|
// /* This code block is duplicated in glxext.h, so must be protected */
|
||||||
// #define GLEXT_64_TYPES_DEFINED
|
// #define GLEXT_64_TYPES_DEFINED
|
||||||
@ -50,17 +48,12 @@ package gl
|
|||||||
// typedef long int int32_t;
|
// typedef long int int32_t;
|
||||||
// typedef long long int int64_t;
|
// typedef long long int int64_t;
|
||||||
// typedef unsigned long long int uint64_t;
|
// typedef unsigned long long int uint64_t;
|
||||||
// #elif defined(_WIN32) && defined(__GNUC__)
|
|
||||||
// #include <stdint.h>
|
|
||||||
// #elif defined(_WIN32)
|
|
||||||
// typedef __int32 int32_t;
|
|
||||||
// typedef __int64 int64_t;
|
|
||||||
// typedef unsigned __int64 uint64_t;
|
|
||||||
// #else
|
// #else
|
||||||
// /* Fallback if nothing above works */
|
// /* Fallback if nothing above works */
|
||||||
// #include <inttypes.h>
|
// #include <inttypes.h>
|
||||||
// #endif
|
// #endif
|
||||||
// #endif
|
// #endif
|
||||||
|
//
|
||||||
// typedef unsigned int GLenum;
|
// typedef unsigned int GLenum;
|
||||||
// typedef unsigned char GLboolean;
|
// typedef unsigned char GLboolean;
|
||||||
// typedef unsigned int GLbitfield;
|
// typedef unsigned int GLbitfield;
|
||||||
@ -95,8 +88,7 @@ package gl
|
|||||||
// typedef int64_t GLint64EXT;
|
// typedef int64_t GLint64EXT;
|
||||||
// typedef uint64_t GLuint64EXT;
|
// typedef uint64_t GLuint64EXT;
|
||||||
// typedef uintptr_t GLsync;
|
// typedef uintptr_t GLsync;
|
||||||
// struct _cl_context;
|
//
|
||||||
// struct _cl_event;
|
|
||||||
// typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
// typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
||||||
// typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
// typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
||||||
// typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
// typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
||||||
@ -166,6 +158,7 @@ package gl
|
|||||||
// typedef void (APIENTRYP GPUSEPROGRAM)(GLuint program);
|
// typedef void (APIENTRYP GPUSEPROGRAM)(GLuint program);
|
||||||
// typedef void (APIENTRYP GPVERTEXATTRIBPOINTER)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const uintptr_t pointer);
|
// typedef void (APIENTRYP GPVERTEXATTRIBPOINTER)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const uintptr_t pointer);
|
||||||
// typedef void (APIENTRYP GPVIEWPORT)(GLint x, GLint y, GLsizei width, GLsizei height);
|
// typedef void (APIENTRYP GPVIEWPORT)(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
//
|
||||||
// static void glowAttachShader(GPATTACHSHADER fnptr, GLuint program, GLuint shader) {
|
// static void glowAttachShader(GPATTACHSHADER fnptr, GLuint program, GLuint shader) {
|
||||||
// (*fnptr)(program, shader);
|
// (*fnptr)(program, shader);
|
||||||
// }
|
// }
|
||||||
@ -353,6 +346,7 @@ package gl
|
|||||||
// (*fnptr)(x, y, width, height);
|
// (*fnptr)(x, y, width, height);
|
||||||
// }
|
// }
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
Loading…
Reference in New Issue
Block a user