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

Author Topic: Quick Texture questions  (Read 1420 times)

0 Members and 1 Guest are viewing this topic.

powf

  • Newbie
  • *
  • Posts: 6
    • View Profile
Quick Texture questions
« on: January 09, 2013, 09:39:43 pm »
If I make two (or more) texture objects from the same file, do they point to the same texture data? If not, is it recommended to try to make them do so to avoid wasting memory?
« Last Edit: January 09, 2013, 09:43:19 pm by powf »

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Quick Texture questions
« Reply #1 on: January 09, 2013, 09:47:19 pm »
Quote
If I make two (or more) texture objects from the same file, do they point to the same texture data?
No.
Quote
If not, is it recommended to try to make them do so to avoid wasting memory?
Yes.
Back to C++ gamedev with SFML in May 2023

powf

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Quick Texture questions
« Reply #2 on: January 09, 2013, 09:49:04 pm »
Alright, thanks.

 

anything