Jump to content

SpiderPig

Developers
  • Posts

    2,203
  • Joined

  • Last visited

Blog Comments posted by SpiderPig

  1. Defiantly not being called somewhere else, I commented out all my code in  the loop except this;

    void cGame::Loop()
    {
    	while (MainFrame::window->Closed() == false && ExitGame == false) {
    			auto _event = GetEvent();
    			if (_event.id != EVENT_NONE) {
    				Confirm("Somthing Else");
    			}
    	}
    }

    It only showed the message box when the window was being created and moved.  I'll see if I can put together a small project and upload it.

  2. Quote

    Because of these different usages, you must manually insert events like mouse movements into the GUI in order for it to process them:

    
    while true do
    	local event = GetEvent()
    	if event.id == EVENT_NONE then break end
    	if event.id == EVENT_MOUSE_DOWN or event.id == EVENT_MOUSE_MOVE or event.id == EVENT_MOUSE_UP or event.id == EVENT_KEY_DOWN or event.id == EVENT_KEY_UP then
    		gui:ProcessEvent(event)
    	end
    end

     

    I don't quite understand how to get the events to the widgets?  I'm using C++, are there any other examples floating around?

    • Like 1
  3. Is this the correct naming?

    {
    	"root": "PBR.json",
    	"float":
    	{
    		"OPAQUE":
    		{
    			"default":
    			{
    				"base":
    				{
    					"vertex": "Landscape.vert.spv",
    					"geometry": "Landscape.geom.spv",
    					"fragment": "Landscape.frag.spv"
    				}

     

    All stages compile and the vert & frag work, but the geometry shader seems to be skipped.  Changes to it don't take effect.

×
×
  • Create New...