Quote: "do any of your commands conflict with bluegui/hgui (humanoids remake)"
i don't know
Quote: "Okay one double post.... You state at the top that you cannot set the display mode or sync.... elaborate for me if you don't mind... How does one apply a higher resolution then?"
resolution of additional windows if determined by the window size
SET DISPLAY MODE is only used for the default dbpro window but if you want to render it you can't use that command, set it's resolution inside IDE settings. SET DISPLAY MODE doesn't have an effect on additional windows
Quote: "It would also appear that the names of your commands are different now (BBB GUI)"
it seems so
here's an updated example
REM IMPORTANT NOTES:
REM Do not use SET DISPLAY MODE command or swapchains won't work!!!!!!
REM Do not use SYNC ON command or you won't be able to render dbpro's default swapchain!!!!!!
sync rate 0
set window on
REM Standard setup of BBB GUI
BBB App_Start
BBB App_SetWindowsFont 7,"Arial",0,0,0,0
BBB App_SetWindowsIcon "Media\dbpro_icon.ico"
BBB App_SetWindowsVisibility 1
dbpro_w=BBB App_GetDbproWindow() : BBB App_SetMainWindow dbpro_w
BBB Window_SetStyle dbpro_w, BBB Window_GetStyle(dbpro_w)||WS_CLIPCHILDREN||WS_CLIPSIBLINGS
REM NOTE:
REM Call this command before creating any additional swapchains
REM You'll need the pointer to dbpro's default swapchain for rendering to default dbpro's window
REM If you don't intend to render to dbpro's default window then you DON'T need this!!
pSChainDefault=BBB GetSwapchain()
REM Additional windows which will hold our additional rendering windows
w=BBB Window_Make(50,50,700,300,"Multiple render windows",dbpro_w, WS_OVERLAPPEDWINDOW)
REM Additional windows - each will have it's own swapchain
w2=BBB Window_Make(20,20,320,240,"",w, WS_CHILD)
w3=BBB Window_Make(360,20,320,240,"",w, WS_CHILD)
REM SWAPCHAINS
REM IMPORTANT NOTE:
REM Swapchains can be of any size but they work the best if they are the same size as the defualt dbpro display size (set in IDE properties)
REM SYNTAX: swapchain_handle=BBB SWAPCHAINCREATE(width, height, window handle)
pSChain1=BBB Swapchain_Create(640,480,w2)
pSChain2=BBB Swapchain_Create(640,480,w3)
make object box 1,2,2,2
color object 1,rgb(200,0,0)
make camera 1
position camera 1,-30,00,0
point camera 1,0,0,0
make camera 2
position camera 2,0,10,0
point camera 2,0,0,0
set current camera 0
position camera 0,0,10,-10
point camera 0,0,0
do
text 20,20,str$(screen fps())
repeat
BBB App_GetEvent
h=BBB App_GetEventHandle()
m=BBB App_GetEventMessage()
if h=BBB App_GetMainWindow()
if m=WM_CLOSE
a=BBB MessageBox("Are you sure you want to quit?","BBB Gui plugin",MB_YESNO)
if a=IDYES then BBB App_End : end
endif
endif
until m=0
yrotate object 1,object angle y(1)+1
REM Let's render camera 1 to first swapchain -> pSChain1
BBB Swapchain_StartRender pSChain1,1
BBB Swapchain_RenderObjects
BBB Swapchain_EndRender pSChain1
REM Let's render camera 2 to second swapchain -> pSChain2
BBB Swapchain_StartRender pSChain2,2
BBB Swapchain_RenderObjects
BBB Swapchain_EndRender pSChain2
REM IMPORTANT NOTE:
REM You have to call SYNC MASK command to tell dbpro to render only one camera
REM It doesn't matter which camera number you use, but you have to use only one camera which must exist otherwise
REM all the cameras will be rendered one after another in the same window what results in visual mess
sync mask 1
REM Let's render camera 0 to dbpro default window
BBB Swapchain_StartRender pSChainDefault,0
BBB Swapchain_RenderObjects
BBB Swapchain_EndRender pSChainDefault
REM NOTE:
REM There's no SYNC command!!! You don't have to use it!!! If you do you'll slow down you application!!
loop