mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
parent
1d418afe86
commit
f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#include <GL/gl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static PROC _gl_procs[]={
|
||||
static PROC _gl_procs[] = {
|
||||
(PROC)glCullFace,
|
||||
(PROC)glFrontFace,
|
||||
(PROC)glHint,
|
||||
|
|
@ -99,7 +99,7 @@ static PROC _gl_procs[]={
|
|||
0
|
||||
};
|
||||
|
||||
static const char* _gl_proc_names[]={
|
||||
static const char *_gl_proc_names[] = {
|
||||
"glCullFace",
|
||||
"glFrontFace",
|
||||
"glHint",
|
||||
|
|
@ -167,15 +167,15 @@ static const char* _gl_proc_names[]={
|
|||
0
|
||||
};
|
||||
|
||||
PROC get_gl_proc_address(const char* p_address) {
|
||||
PROC get_gl_proc_address(const char *p_address) {
|
||||
|
||||
PROC proc = wglGetProcAddress((const CHAR*)p_address);
|
||||
PROC proc = wglGetProcAddress((const CHAR *)p_address);
|
||||
if (!proc) {
|
||||
|
||||
int i=0;
|
||||
while(_gl_procs[i]) {
|
||||
int i = 0;
|
||||
while (_gl_procs[i]) {
|
||||
|
||||
if (strcmp(p_address,_gl_proc_names[i])==0) {
|
||||
if (strcmp(p_address, _gl_proc_names[i]) == 0) {
|
||||
return _gl_procs[i];
|
||||
}
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue