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

Author Topic: Headers  (Read 3647 times)

0 Members and 1 Guest are viewing this topic.

vyal

  • Newbie
  • *
  • Posts: 4
    • View Profile
Headers
« on: February 16, 2014, 08:55:38 am »
I downloaded CSFML-2.1-windows-32bits.zip, for gcc/msvc. I need to translate C headers of CSFML into FreeBASIC. I'm translating by manual method. I do know good C but am not C expert, mainly application programmer. I got confused in declarations like (from Image.h):
Code: [Select]
CSFML_GRAPHICS_API sfImage* sfImage_create(unsigned int width, unsigned int height);

what is CSFML_GRAPHICS_API? If I am right, we are declaring a function sfImage_create type pointer to sfImage. But what do CSFML_GRAPHICS_API do and stand for? Then audio headers have CSFML_AUDIO_API, network headers have CSFML_NETWORK_API, etc.
- Harsh Bhati

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Headers
« Reply #1 on: February 16, 2014, 08:59:58 am »
This is a macro that hides the import/export declarations. You can ignore it.
Laurent Gomila - SFML developer

vyal

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Headers
« Reply #2 on: February 16, 2014, 09:06:32 am »
This is a macro that hides the import/export declarations. You can ignore it.
That gave real relief, Thanks! :)