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

Author Topic: Default value for render states ?  (Read 276 times)

0 Members and 1 Guest are viewing this topic.

Baleine

  • Newbie
  • *
  • Posts: 1
    • View Profile
Default value for render states ?
« on: December 22, 2022, 07:43:58 pm »
Hello, searching for how to properly initiate my sfRenderStates variable to have only a texture. I found this answer in this thread from 2012:
I should probably add a sfRenderStates_default function/variable.
However, I couldn't find this constant. Is it still planned to be added ? It would be very useful.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10390
    • View Profile
    • development blog
    • Email
Re: Default value for render states ?
« Reply #1 on: December 30, 2022, 05:43:55 pm »
sfRenderStates_default was never added, you'll just have to create a state with the default values as mentioned.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://dev.my-gate.net/

 

anything