Jump to content

  • Log In with Google      Sign In   
  • Create Account

GWEN + My game = crash


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 ic0de   Members   -  Reputation: 909

Like
0Likes
Like

Posted 04 October 2012 - 06:56 PM

So today I decided to try Gwen a lightweight gui api for games. I Set gwen up in my game and tried to render but it crashed, an access violation inside the library here:

void Base::Layout( Skin::Base* skin )
{
if ( skin->GetRender()->GetCTT() && ShouldCacheToTexture() )
  skin->GetRender()->GetCTT()->CreateControlCacheTexture( this );
}

I set gwen up like so:

Gwen::Renderer::coRenderer * pRenderer = new Gwen::Renderer::coRenderer(); //my custom renderer
Gwen::Skin::TexturedBase skin;
skin.SetRender( pRenderer );
skin.Init("DefaultSkin.png");
pCanvas = new Gwen::Controls::Canvas( &skin );
pCanvas->SetSize( screen->w, screen->h );

Right now I'm using a custom renderer based on the opengl renderer, I also tried using the stock opengl renderer and I had the same issue. anybody here used Gwen before? Anybody know what's wrong?

thanks in advance.

you know you program too much when you start ending sentences with semicolons;


Sponsor:

#2 ic0de   Members   -  Reputation: 909

Like
0Likes
Like

Posted 05 October 2012 - 04:23 PM

problem went away after I updated to the SVN version of gwen and changed my setup code to this:

Gwen::Renderer::coRenderer * pRenderer = new Gwen::Renderer::coRenderer();
Gwen::Skin::TexturedBase* pSkin = new Gwen::Skin::TexturedBase( pRenderer );
pSkin->Init("DefaultSkin.png");
pCanvas = new Gwen::Controls::Canvas( pSkin );
pCanvas->SetSize( screen->w, screen->h );

you know you program too much when you start ending sentences with semicolons;





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS