Jump to content

FullScreen in C++?


Birdman
 Share

Recommended Posts

How do i set the flags for graphics function or what command i have to use to go FULLSCREEN?

 

Im using this, but i get it windowed.

 

Initialize();
int screenwidth = GetSystemMetrics(0);
int screenheight = GetSystemMetrics(1);
Graphics( screenwidth, screenheight ) ;

..CODE..

TFramework fw=CreateFramework();
while( !KeyHit() && !AppTerminate() )
{
			UpdateFramework();
                               ...CODE..
			// Render
			RenderFramework();
		Flip();
      }

 

Also im having some strange lags when some objects load, maybe map is a bit populated, any idea on what else i would need here to get better graphical performance?

Link to comment
Share on other sites

Guest Red Ocktober

How do i set the flags for graphics function or what command i have to use to go FULLSCREEN?

 

Im using this, but i get it windowed.

 

Initialize();
int screenwidth = GetSystemMetrics(0);
int screenheight = GetSystemMetrics(1);
Graphics( screenwidth, screenheight ) ;

..CODE..

TFramework fw=CreateFramework();
while( !KeyHit() && !AppTerminate() )
{
			UpdateFramework();
                               ...CODE..
			// Render
			RenderFramework();
		Flip();
      }

 

Also im having some strange lags when some objects load, maybe map is a bit populated, any idea on what else i would need here to get better graphical performance?

 

try Graphics( screenwidth, screenheight,32 ) ;

that'll do it for ya...

 

--Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...