Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / help with window and camera

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 13th Apr 2005 00:51
well i was starting to make a program and made a window and maximized in code but how can i make the camera be the same size as a maximized window, nearly full screen

here is my code
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 13th Apr 2005 01:28
just incase i did not make sense the first time when you execute this program how can you make the black bit (camera) the whole window size but still be a window
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 22nd Apr 2005 04:50
delete that code and put this. I use the full screen and put a window layout.But when you go back to dark basic there is a window around it for some reason.so just make the ones to zero and it will go back.


NARUTO IS THE NINJA.......not really
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 23rd Apr 2005 07:26 Edited at: 23rd Apr 2005 07:27
Uh?

!hi!, it depends on your screen resolution.

You must think of the 3D/2D 'viewport' as seperate from the window. Unfortunately, there is no way to find out how big the window is and change the following code accordingly, so you'll just have to measure your own screen resolution and live with that.

Say your desktop (normal non-darkbasic) screen res was 1024x768.
You would use this code:


Set Window On
Maximize Window

`We now have the white border around it.
`Make the 'viewport' the right size.
`The depth (in this case, 32), doesn't REALLY make a difference.
Set Display Mode 1024,768,32
`No more white border ^_^

......And that would do the trick.

How's my typing? Phone 0800-GO-TO-HELL

Login to post a reply

Server time is: 2025-05-23 10:41:19
Your offset time is: 2025-05-23 10:41:19