Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How do I use 'sfRenderStates'?  (Read 5332 times)

0 Members and 1 Guest are viewing this topic.

yj1214

  • Newbie
  • *
  • Posts: 14
    • View Profile
How do I use 'sfRenderStates'?
« on: August 26, 2015, 05:49:44 am »
Code: [Select]
sfRenderStates *text_mode;
text_mode.blendMode = ?;

I don't know what to put there...

also, is there way to make my text not get 'resized'? when I resize my window, my text gets resized too...

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: How do I use 'sfRenderStates'?
« Reply #1 on: August 26, 2015, 09:38:13 am »
Have you had a look at the API documentation?

The resize issue is explained in the tutorial about events.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: How do I use 'sfRenderStates'?
« Reply #2 on: August 26, 2015, 08:26:54 pm »
The resize issue is explained in the tutorial about events.
Actually, it's in the tutorial about views  ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything