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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Onurb

Pages: [1]
C / can't set sfVector2f in 2.1?
« on: May 07, 2014, 01:01:50 am »
first of all thanks for development with C sfml, appreciate it too much; however it seems i am in need of some help!

every time i type:

sfVector2f v1(100.f,100.f);

or anything of the sort; and i try compiling, this is what i get

1>sfml_test2.c(20): error C2275: 'sfVector2f' : illegal use of this type as an expression
1>          C:\Program Files (x86)\CSFML-2.1\include\SFML/System/Vector2.h(64) : see declaration of 'sfVector2f'

how do i define a new vector then? anybody help me? it seems it is an illegal use of the type as an expression what i am doing but; why?
the usage in the documentation reads:


sf::Vector2f v1(16.5f, 24.f);

that's the example code.

i just don't get it :S i can't make the stuff move without this; and setX doesn't work it seems;
i can't set make the 2 floats into a vector no matter what the manual says!!! sure could use a hand  :-\

Pages: [1]