47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| ///////////////////////////////////////////////////////////////////////////////////////////////////
 | |
| // OpenGL Image Copyright (c) 2008 - 2011 G-Truc Creation (www.g-truc.net)
 | |
| ///////////////////////////////////////////////////////////////////////////////////////////////////
 | |
| // Created : 2008-12-19
 | |
| // Updated : 2010-09-27
 | |
| // Licence : This source is under MIT License
 | |
| // File    : gli/gtx/fetch.hpp
 | |
| ///////////////////////////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #ifndef GLI_GTX_FETCH_INCLUDED
 | |
| #define GLI_GTX_FETCH_INCLUDED
 | |
| 
 | |
| #include "../gli.hpp"
 | |
| 
 | |
| namespace gli{
 | |
| namespace gtx{
 | |
| namespace fetch
 | |
| {
 | |
| 	template <typename genType>
 | |
| 	genType texelFetch(
 | |
| 		texture2D const & Texture, 
 | |
| 		texture2D::dimensions_type const & Texcoord,
 | |
| 		texture2D::level_type const & Level);
 | |
| 
 | |
| 	template <typename genType>
 | |
| 	genType textureLod(
 | |
| 		texture2D const & Texture, 
 | |
| 		texture2D::texcoord_type const & Texcoord,
 | |
| 		texture2D::level_type const & Level);
 | |
| 
 | |
| 	template <typename genType>
 | |
| 	void texelWrite(
 | |
| 		texture2D & Texture,
 | |
| 		texture2D::dimensions_type const & Texcoord,
 | |
| 		texture2D::level_type const & Level,
 | |
| 		genType const & Color);
 | |
| 
 | |
| }//namespace fetch
 | |
| }//namespace gtx
 | |
| }//namespace gli
 | |
| 
 | |
| namespace gli{using namespace gtx::fetch;}
 | |
| 
 | |
| #include "fetch.inl"
 | |
| 
 | |
| #endif//GLI_GTX_FETCH_INCLUDED
 | 
