Changed the ABI for android.

Changed the default project compiled in android.
Changed the empty window to show a couple of primitives.
This commit is contained in:
spartanj@gmail.com
2012-02-28 11:59:15 -03:00
parent b9d44f453e
commit e811b70b74
3 changed files with 25 additions and 26 deletions

View File

@@ -6,12 +6,17 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
// Create a new window
cWindow * win = cEngine::instance()->CreateWindow( WindowSettings( 800, 600, 32, WindowStyle::Default, "", "eepp - Empty Window" ), ContextSettings( ) );
// Set window background color
win->BackColor( eeColor( 50, 50, 50 ) );
// Check if created
if ( win->Created() )
{
// Get input pointer
cInput * imp = win->GetInput();
eeFloat ang = 0;
// Application loop
while ( win->Running() )
{
@@ -25,6 +30,23 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
win->Close();
}
ang += cEngine::instance()->Elapsed() * 0.01;
// Create an instance of the primitive renderer
cPrimitives p;
// Set the primitive color
p.SetColor( eeColorA( 0, 150, 0, 150 ) );
// Draw a rectangle
p.DrawRectangle( 100, 100, win->GetWidth() - 200, win->GetHeight() - 200, ang );
// Change the color
p.SetColor( eeColorA( 0, 255, 0, 150 ) );
// Draw a circle
p.DrawCircle( win->GetWidth() / 2, win->GetHeight() / 2, 200 );
// Draw frame
win->Display();