Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


sjeps

Member Since 01 Nov 2012
Offline Last Active Sep 04 2013 06:28 AM

Topics I've Started

multi image texture scaling problem

20 December 2012 - 07:40 AM

Hi everybody.
I have some images stored one near each other in a single texture. I'm 2d drawing each of them specifing their positions in the texture's coordinate system (0.f-1.f). Everything works fine like that.
Anyway, when i try to zoom (glscalef) one of these images (portion of the whole texture) strange behaviors might occour.
Depending on the zoom size, in addition to the image i'm displaying, also a single line of one of the surronding images in the texture could be displayed. I'm using mag filter NEAREST and no texture wrappings. Using mag filter LINEAR the problem doesn't show up.
Is this some intended behavior? Or maybe a floating point number/rounding problem?
Thx for help

Need an advice on GUI-HUD for my 2D game

01 November 2012 - 03:19 AM

Hi everybody!

I'm developing a small (for now) 2d game with sdl and opengl.

I've reached the point i need to make a main menu, some options menus, a character-weapon selection screen, and some in-game hud (healt, ammos, modifiers, event texts like "you picked a treasure!"...).

So i need to render some text and images.
I've already tried successfully font libraries and so on.

Anyway i'm wondering: is there a simpler and more flexible approach to making all these things.
Like some easy to implement menus, counters, different size-color texts, etc..


I've looked in some GUI libraries, like CEGUI, but i'm wondering if it's the right approach..

I mean, i'm lookin for just some simple selection menus, nothing like draggable windows or resizable widgets. Also my game is using joypads, while i found most of these libraries mouse oriented..
And are they capable of rendering texts in a flexible or nice looking way?

I'm just looking for some advices

PARTNERS