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

Author Topic: Sample code  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Sample code
« on: September 29, 2013, 02:00:02 pm »
Can you give a simple example SFML to VB.NET. Very few examples of the code for the language. Especially I can not understand the work of events. Can you give an example? I beg you.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Sample code
« Reply #1 on: September 29, 2013, 02:35:06 pm »
There is an example here: https://github.com/SFML/SFML.Net/tree/master/examples/visualbasic

Events use the built-in event system of the language, there's nothing specific to SFML.
Laurent Gomila - SFML developer

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Sample code
« Reply #2 on: September 29, 2013, 03:13:44 pm »
I did not understand the link. Can you elaborate on the account of events in VB.NET or give an example of code? Just last month I can not understand it and the evil already. Just the code.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Sample code
« Reply #3 on: September 29, 2013, 06:06:48 pm »
The link brings you to the repository where the VB.Net example is. The code is just one click away (in the .vb file).

https://github.com/SFML/SFML.Net/blob/master/examples/visualbasic/OpenGL.vb

If you don't understand the event system in VB then read more about it, we won't teach you the VB language here ;)
Laurent Gomila - SFML developer

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Sample code
« Reply #4 on: September 29, 2013, 08:19:20 pm »
Thank you very much! I understand the example. SFML is the best!