Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set window question
#1
Hi Marcus

The set window command of NaaLaa, that works in windows, was done using assembler? win32? directx? opengl?
What graphics modes does it support ?
Can i get the code or a hint ? LOL [Image: smile.png]
Reply
#2
(06-30-2018, 01:00 PM)pedromartins Wrote: Hi Marcus

The set window command of NaaLaa, that works in windows, was done using assembler? win32? directx? opengl?
What graphics modes does it support ?
Can i get the code or a hint ? LOL [Image: smile.png]

The syntax is:

set window xPosition, yPosition, width, height, fullScreen, scale

scale only matters if fullScreen is not set true. As an example, for a 320x240 window upscaled to 640x480, you set width and height to 320 and 240, fullScreen to false and scale to 2.

If you set fullScreen to true the graphics will be stretched to fit the desktop resolution. So, yes, if you set width and height to 8 and 720, that is what you'll get - stretched over the entire screen.

I did it this way rather than adding some weird enumeratiom of available screen resolutions.

Naalaa doesn't use opengl or directx, just regular winapi.
Reply
#3
Hi Marcus

Thanks for answer. I think it will be Win32 summer crash coarse. [Image: smile.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)