SFML community forums

Bindings - other languages => C => Topic started by: mimipim on February 12, 2011, 12:58:12 am

Title: Simple object class(LoadFromFile problem)
Post by: mimipim on February 12, 2011, 12:58:12 am
Hi again :)

This time my problem is that LoadFromFile function from Image library return false while trying to load file.

It seems the error comes from my new class.
Take look at my script:
!Removed!

The result is: 'Can't load file: images/grass.png'

If I try to simply load the same image outside from my class its load successfuly.

EDIT: I remove code because I fix it myself. The problem was that I was trying to access Private variable. Sorry for this topic.. but I'm still learning classes :oops: