mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-10 16:51:19 +03:00
Color now is RGB.
ColorA now is Color. --HG-- branch : dev
This commit is contained in:
@@ -11,7 +11,7 @@ void mainLoop()
|
||||
Primitives p;
|
||||
|
||||
// Change the color
|
||||
p.setColor( ColorA( 0, 255, 0, 150 ) );
|
||||
p.setColor( Color( 0, 255, 0, 150 ) );
|
||||
|
||||
// Update the input
|
||||
win->getInput()->update();
|
||||
@@ -38,7 +38,7 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
|
||||
// Check if created
|
||||
if ( win->isOpen() ) {
|
||||
// Set window background color
|
||||
win->setClearColor( Color( 50, 50, 50 ) );
|
||||
win->setClearColor( RGB( 50, 50, 50 ) );
|
||||
|
||||
// Set the MainLoop function and run it
|
||||
// This is the application loop, it will loop until the window is closed.
|
||||
|
||||
Reference in New Issue
Block a user