Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

GWEN + My game = crash

4: Adsense

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   

974
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.
Currently working on new DOS game, Chuck Jones: Space Cop of the Future, Check out my Dev Blog
 

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


#2 ic0de   Members   

974
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 );

Currently working on new DOS game, Chuck Jones: Space Cop of the Future, Check out my Dev Blog
 

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.