31
SFML projects / Updator
« on: June 19, 2011, 01:33:09 pm »
the user can rename the namespace in his code, it's not a problem.
it's a very interesting project !
it's a very interesting project !
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.
WHILE running:
WHILE there is event:
IF event.Type == KeyPressed:
action = TURN INTO RED
colororigin = currentcolor
during = 5 ; // seconds
IF action = TURN INTO RED:
color.r = color.r + ( redcolor.r - color.r ) / 5 * elapsed time since last interpolation
.....
FIND_PACKAGE (
SFML
REQUIRED system window graphics # audio network if you want
)
INCLUDE_DIRECTORIES ( ${SFML_INCLUDE_DIR} )
...
TARGET_LINK_LIBRARIES (
myexe
# like
${SFML_GRAPHICS_LIBRARY}
${SFML_WINDOW_LIBRARY}
# or like
${SFML_SYSTEM_LIBRARY_DEBUG}