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

Author Topic: I can't seem to use the loadFromFile function from Texture in Visual Basic  (Read 2808 times)

0 Members and 1 Guest are viewing this topic.

mtrx3

  • Newbie
  • *
  • Posts: 1
    • View Profile
After declaring a texture like this

Dim tex As Texture

Then typing

tex.

A intellisense message comes up that loadFromFile is not a member of Texture.

How can I correctly do this so I can include error checking code such as missing files and etc.

Pacis

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
You have to use the constructor to load the path

Texture A = new Texture("./b.png")