Browse Source

add gl.h

feature/replace-renderer
Martin Dørum 3 years ago
parent
commit
03a92d2921

+ 1
- 0
libcygnet/include/cygnet/gl.h View File

@@ -0,0 +1 @@
#include <SDL_opengles2.h>

+ 1
- 1
libcygnet/src/GlWrappers.cc View File

@@ -1,8 +1,8 @@
#include "GlWrappers.h"

#include <SDL_opengles2.h>
#include <iostream>

#include "gl.h"
#include "util.h"

namespace Cygnet {

+ 1
- 1
libcygnet/src/Renderer.cc View File

@@ -2,7 +2,6 @@

#include <iostream>
#include <stdio.h>
#include <SDL_opengles2.h>
#include <swan-common/constants.h>
#include <string.h>

@@ -10,6 +9,7 @@
#include <type_traits>
#include <bit>

#include "gl.h"
#include "shaders.h"
#include "GlWrappers.h"
#include "TileAtlas.h"

+ 2
- 1
libcygnet/src/TileAtlas.cc View File

@@ -3,11 +3,12 @@
#include <iostream>
#include <vector>
#include <algorithm>
#include <SDL_opengles2.h>
#include <stdio.h>
#include <string.h>
#include <swan-common/constants.h>

#include "gl.h"

namespace Cygnet {

struct AtlasState {

+ 1
- 1
libcygnet/src/Window.cc View File

@@ -1,8 +1,8 @@
#include "Window.h"

#include <SDL.h>
#include <SDL_opengles2.h>

#include "gl.h"
#include "util.h"

namespace Cygnet {

+ 2
- 1
libcygnet/src/util.cc View File

@@ -1,7 +1,8 @@
#include "util.h"

#include <SDL.h>
#include <SDL_opengles2.h>

#include "gl.h"

namespace Cygnet {


Loading…
Cancel
Save