mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
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:
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user