mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-03 03:56:30 +03:00
I made some structural changes, and i'm trying to encapsulate a little the renderer to in a future implement an OpenGL3 render, and remove the fixed pipeline.
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
#include "../helper/SOIL/SOIL.h"
|
||||
#include "glhelper.hpp"
|
||||
|
||||
using namespace EE::Graphics::Private;
|
||||
|
||||
namespace EE { namespace Graphics {
|
||||
|
||||
cTextureLoader::cTextureLoader( const std::string& Filepath,
|
||||
@@ -156,7 +154,7 @@ void cTextureLoader::Start() {
|
||||
|
||||
void cTextureLoader::LoadFromPath() {
|
||||
if ( FileExists( mFilepath ) ) {
|
||||
if ( cGL::instance()->IsExtension( EEGL_EXT_texture_compression_s3tc ) )
|
||||
if ( GLi->IsExtension( EEGL_EXT_texture_compression_s3tc ) )
|
||||
mIsDDS = 0 != stbi_dds_test_filename( mFilepath.c_str() );
|
||||
|
||||
if ( mIsDDS ) {
|
||||
@@ -188,7 +186,7 @@ void cTextureLoader::LoadFromPack() {
|
||||
}
|
||||
|
||||
void cTextureLoader::LoadFromMemory() {
|
||||
if ( cGL::instance()->IsExtension( EEGL_EXT_texture_compression_s3tc ) )
|
||||
if ( GLi->IsExtension( EEGL_EXT_texture_compression_s3tc ) )
|
||||
mIsDDS = 0 != stbi_dds_test_memory( mImagePtr, mSize );
|
||||
|
||||
if ( mIsDDS ) {
|
||||
|
||||
Reference in New Issue
Block a user