kick
/Users/morten/Programmering/cpp/kick/src/kick/texture/texture_sampler.h
00001 //
00002 //  texture_config.h
00003 //  UnitTest_KickCPP
00004 //
00005 //  Created by morten on 07/04/14.
00006 //
00007 //
00008 
00009 #pragma once
00010 #include <iostream>
00011 #include "kick/core/kickgl.h"
00012 
00013 namespace kick {
00014     enum class TextureWrap {
00015         ClampToEdge = GL_CLAMP_TO_EDGE,
00016 #ifndef GL_ES_VERSION_2_0
00017         ClampToBorder = GL_CLAMP_TO_BORDER,
00018 #endif
00019         MirroedRepeat = GL_MIRRORED_REPEAT,
00020         Repeat = GL_REPEAT
00021     };
00022     
00023     enum class TextureFilter {
00024         Nearest = GL_NEAREST,
00025         Linear = GL_LINEAR,
00026         NearestMipmapNearest = GL_NEAREST_MIPMAP_NEAREST,
00027         LinearMipmapNearest = GL_LINEAR_MIPMAP_NEAREST,
00028         NearestMipmapLinear = GL_NEAREST_MIPMAP_LINEAR,
00029         LinearMipmapLinear = GL_LINEAR_MIPMAP_LINEAR
00030     };
00031     
00032     struct TextureSampler {
00033         TextureWrap wrapS = TextureWrap::Repeat;
00034         TextureWrap wrapT = TextureWrap::Repeat;
00035         TextureWrap wrapW = TextureWrap::Repeat;
00036         TextureFilter filterMin = TextureFilter::Nearest;
00037         TextureFilter filterMag = TextureFilter::Nearest;
00038     };
00039 }
 All Classes Functions Variables