mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 10:06:35 +03:00
Added fonts example.
Removed the allocation size parameter from the ColorPointer, VertexPointer and TexCoordPointer functions. And some minor changes.
This commit is contained in:
@@ -10,8 +10,7 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
|
||||
win->BackColor( eeColor( 50, 50, 50 ) );
|
||||
|
||||
// Check if created
|
||||
if ( win->Created() )
|
||||
{
|
||||
if ( win->Created() ) {
|
||||
// Create an instance of the primitive renderer
|
||||
cPrimitives p;
|
||||
|
||||
@@ -19,14 +18,12 @@ EE_MAIN_FUNC int main (int argc, char * argv [])
|
||||
p.SetColor( eeColorA( 0, 255, 0, 150 ) );
|
||||
|
||||
// Application loop
|
||||
while ( win->Running() )
|
||||
{
|
||||
while ( win->Running() ) {
|
||||
// Update the input
|
||||
win->GetInput()->Update();
|
||||
|
||||
// Check if ESCAPE key is pressed
|
||||
if ( win->GetInput()->IsKeyDown( KEY_ESCAPE ) )
|
||||
{
|
||||
if ( win->GetInput()->IsKeyDown( KEY_ESCAPE ) ) {
|
||||
// Close the window
|
||||
win->Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user