kick
/Users/morten/Programmering/cpp/kick/src/kick/texture/image_format.h
00001 //
00002 //  texture_format.h
00003 //  UnitTest_KickCPP
00004 //
00005 //  Created by morten on 07/04/14.
00006 //
00007 //
00008 
00009 #pragma once
00010 
00011 #include <iostream>
00012 #include <functional>
00013 #include <string>
00014 #include "kick/core/kickgl.h"
00015 
00016 
00017 namespace kick {
00018     enum class Mipmap {
00019         None = 0,
00020         Enabled = 1
00021     };
00022     
00023     struct ImageFormat {
00024         GLenum internalFormat = GL_RGBA;
00025         GLenum format = GL_RGBA;
00026         GLenum type = GL_UNSIGNED_BYTE;
00027         int mipmapLevel = 0;
00028         Mipmap mipmap = Mipmap::Enabled;
00029         bool isValid(std::function<void (std::string)> onError = [](std::string s){});
00030     };
00031 }
 All Classes Functions Variables