Esempio n. 1
0
	//------------------------------------------------------------------------------------------------------
	void TextureResourceGL::_DoSetWarpType( const TextureProperty::WarpType& wt )
	{
		ActiveTexture();
		int TexType = _GLTextureType( _GetTextureType() );
		glTexParameteri( TexType, GL_TEXTURE_WRAP_S, _GLWrap(wt.m_SWarp) );
		CHECK_GRAPHIC_SYSTEM_ERROR;
		glTexParameteri( TexType, GL_TEXTURE_WRAP_T,  _GLWrap(wt.m_TWarp) );
		CHECK_GRAPHIC_SYSTEM_ERROR;
	}
	//------------------------------------------------------------------------------------------------------
	void TextureResourceGL::_DoSetWarpType( const TextureStatus::WarpType& wt )
	{
		ActiveTexture();
		int TexType = _GLTextureType( _GetTextureType() );
		glTexParameteri( TexType, GL_TEXTURE_WRAP_S, _GLWrap(wt.m_SWarp) );
		CHECK_ERROR_RENDER;
		glTexParameteri( TexType, GL_TEXTURE_WRAP_T,  _GLWrap(wt.m_TWarp) );
		CHECK_ERROR_RENDER;
	}