mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -6,31 +6,32 @@
|
|||
// For glHint
|
||||
#include <GL/gl.h>
|
||||
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
|
||||
#include <gl4es/gl4esinit.h>
|
||||
#include <gl4es/gl4eshint.h>
|
||||
#include <gl4es/gl4esinit.h>
|
||||
|
||||
static SDL_Window *gWindow;
|
||||
static SDL_Window* gWindow;
|
||||
|
||||
void openmw_gl4es_GetMainFBSize(int *width, int *height)
|
||||
{
|
||||
SDL_GetWindowSize(gWindow, width, height);
|
||||
}
|
||||
void openmw_gl4es_GetMainFBSize(int* width, int* height)
|
||||
{
|
||||
SDL_GetWindowSize(gWindow, width, height);
|
||||
}
|
||||
|
||||
void openmw_gl4es_init(SDL_Window *window)
|
||||
{
|
||||
gWindow = window;
|
||||
set_getprocaddress(SDL_GL_GetProcAddress);
|
||||
set_getmainfbsize(openmw_gl4es_GetMainFBSize);
|
||||
initialize_gl4es();
|
||||
void openmw_gl4es_init(SDL_Window* window)
|
||||
{
|
||||
gWindow = window;
|
||||
set_getprocaddress(SDL_GL_GetProcAddress);
|
||||
set_getmainfbsize(openmw_gl4es_GetMainFBSize);
|
||||
initialize_gl4es();
|
||||
|
||||
// merge glBegin/glEnd in beams and console
|
||||
glHint(GL_BEGINEND_HINT_GL4ES, 1);
|
||||
// dxt unpacked to 16-bit looks ugly
|
||||
glHint(GL_AVOID16BITS_HINT_GL4ES, 1);
|
||||
}
|
||||
// merge glBegin/glEnd in beams and console
|
||||
glHint(GL_BEGINEND_HINT_GL4ES, 1);
|
||||
// dxt unpacked to 16-bit looks ugly
|
||||
glHint(GL_AVOID16BITS_HINT_GL4ES, 1);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
} // extern "C"
|
||||
|
||||
#endif // OPENMW_GL4ES_MANUAL_INIT
|
||||
#endif // OPENMW_GL4ES_MANUAL_INIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue