About Max2D

BlitzMax Forums/BlitzMax Beginners Area/About Max2D

Seldon(Posted 2012) [#1]
I'am an old Blitz2D/Plus user, now I'm thinking to purchase BlitzMax to code a new project. I wanted to know... is Max2D a 3D acceletared framework isn't it ?

Last edited 2012


Jesse(Posted 2012) [#2]
Yes!


Seldon(Posted 2012) [#3]
Thanks ! Actually I want to use BlitzMax to make a 3d accelerated GUI program... except for a nice GUI and custom buttons, it'll be a classic application with a standard database (I plan to use an external DLL of my own).

Is it possibile to use the events module without opening a MaxGUI window ? I mean, only using the Graphics() command. I did few tests and it seems to work, but the values I'm getting from EventID() seem different.

Last edited 2012


AdamRedwoods(Posted 2012) [#4]
Is it possibile to use the events module without opening a MaxGUI window ?

Yes, but only your own fired events (I think).

You can use polled input using Graphics().


kfprimm(Posted 2012) [#5]
Event hooks will probably suit you best.

Strict

Graphics 800,600

Function EventHook:Object(id,data:Object,context:Object)
	Local event:TEvent = TEvent(data)
	Select event.id
	Case EVENT_MOUSEMOVE
		Print "Mouse moved to "+event.x+","+event.y
	Case EVENT_MOUSEUP
		Print "Mouse up! (button = "+event.data+")"
	Case EVENT_MOUSEDOWN
		Print "Mouse down! (button = "+event.data+")"		
	End Select
End Function

AddHook EmitEventHook, EventHook

Repeat 
	Cls
	DrawRect MouseX() - 5, MouseY() - 5, 10, 10
	Flip
Until KeyDown(KEY_ESCAPE) Or AppTerminate()


No need to use BRL.EventQueue, the module that provides EventID()/EventX()/EventY()/etc.