Port to Win32; Move sources to src/ subdir; Use precompiled headers

This commit is contained in:
2015-07-09 12:33:26 +02:00
parent ea701302ac
commit 86ba46667d
72 changed files with 1343 additions and 291 deletions

22
src/render/renderutil.hh Normal file
View File

@@ -0,0 +1,22 @@
#ifndef WC3RE_RENDER_RENDERUTIL_HH__
#define WC3RE_RENDER_RENDERUTIL_HH__
#include "GlResource.hh"
namespace render {
unsigned ilog2(unsigned in);
// Return (GL_MAX_TEXTURE_SIZE, GL_MAX_ARRAY_TEXTURE_LAYERS)
std::tuple<unsigned, unsigned> getGLTextureMaximums();
// call glUseProgram if program != current program
void useProgram(gl::GLuint program);
bool extensionSupported(std::string const& extname);
TextureResource create2DTexture(unsigned width, unsigned height, bool alpha, unsigned levels = 0);
TextureResource create2DArrayTexture(unsigned width, unsigned height, unsigned count,
bool alpha, unsigned levels = 0);
}
#endif