Added BlendMode class to set the blend mode, since it doesn't make sense to control the blend mode in the texture factory.

Added Clear() method to cWindow, to allow the user to control WHEN clear the buffers.
Added some operators to eeColorA.
Fixed BlendMode for FBO's.
Hided cTexture constructors, the only class that it's allowed to create textures is cTextureFactory.
This commit is contained in:
spartanj@gmail.com
2012-12-01 20:06:11 -03:00
parent 7a16c52f2a
commit 40086e3bc3
55 changed files with 447 additions and 313 deletions

View File

@@ -53,7 +53,7 @@ void videoResize() {
GLi->EnableClientState( GL_COLOR_ARRAY );
/// Reset the default blend func ( by default eepp use ALPHA_NORMAL )
cTextureFactory::instance()->SetPreBlendFunc( ALPHA_BLENDONE );
BlendMode::SetMode( ALPHA_BLENDONE );
/// Set the line width
cGlobalBatchRenderer::instance()->SetLineWidth( 2 );
@@ -83,7 +83,7 @@ using namespace Demo_ExternalShader;
EE_MAIN_FUNC int main (int argc, char * argv [])
{
win = cEngine::instance()->CreateWindow( WindowSettings( 960, 640, 32, WindowStyle::Default, "", "eepp - External Shaders" ), ContextSettings( true ) );
win = cEngine::instance()->CreateWindow( WindowSettings( 960, 640, "eepp - External Shaders" ), ContextSettings( true ) );
if ( win->Created() )
{