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 - rahul8590

Pages: [1]
1
General / Can we call an exe file directly usinh sfml ..?
« on: April 28, 2010, 09:09:44 pm »
I am creating a project completely based on SFML , the thing is i have built things in module and i thought may be if i can call those modules (which r in exe format) directly .

Is there any option where we can directly call an exe program.

2
Network / Declaraion + Linking error
« on: April 18, 2010, 10:44:15 pm »
It may sound ridiculous , but i am getting errors while running the socket example programs like

cannot


 
Quote

H:\MySfml\sockets\main.cpp:68: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:68: error: `IPAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:68: error: expected `;' before "ServerAddress"
H:\MySfml\sockets\main.cpp:72: error: `ServerAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:72: warning: unused variable 'ServerAddress'
H:\MySfml\sockets\main.cpp:74: error: `ServerAddress' was not declared in this scope
H:\MySfml\sockets\main.cpp:77: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:77: error: `SocketTCP' was not declared in this scope
H:\MySfml\sockets\main.cpp:77: error: expected `;' before "Client"
H:\MySfml\sockets\main.cpp:80: error: `Client' was not declared in this scope
H:\MySfml\sockets\main.cpp:80: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:80: error: `Done' was not declared in this scope
H:\MySfml\sockets\main.cpp:80: warning: unused variable 'Client'
H:\MySfml\sockets\main.cpp:80: warning: unused variable 'Done'
H:\MySfml\sockets\main.cpp:87: error: `Client' was not declared in this scope
H:\MySfml\sockets\main.cpp:87: error: `sf' has not been declared
H:\MySfml\sockets\main.cpp:87: error: `Done' was not declared in this scope





well there are many and i do understand there is some small linking error .
i would be glad if u could help me out.

3
General discussions / Is there any Book For SFML ..?
« on: March 18, 2010, 11:29:12 pm »
Hello everyone ..

Unarguable , we know that SFML is one of the fastest and simplest programming tool for graphics and other things.
But , i was wondering if there exist any book which is written for SFML , which helps noobs to learn this in a systematic fashion.

4
Audio / Larger .ogg files not being played
« on: March 18, 2010, 09:35:45 pm »
I am running the music playing program from the tutorials , and it works awesome for smaller files which is in Kbs . But for larger files , which are in Mbs are just not being played . Wat could be the  problem .. ?

5
Graphics / Scrolling Text..
« on: March 16, 2010, 08:54:37 pm »
Well i have been using SFML for past 3-4 days and have completely fallen in love with it , its awesome .. :)

Well i have uploaded an image and also , text (arial) .
Now , i want the text to be scrolling , how do i do that .. ?

I am attaching the code in here :
Code: [Select]

#include <SFML/Graphics.hpp>
#include<iostream>

 int main()
 {
     // Create the main window
     sf::RenderWindow App(sf::VideoMode(703, 493), "Rahul.Reincarnated ");

     // Load a sprite to display
     sf::Image Image;
     if (!Image.LoadFromFile("image1.jpg"))
         return EXIT_FAILURE;
     sf::Sprite Sprite(Image);

     // Create a graphical string to display
     sf::Font Arial;
     if (!Arial.LoadFromFile("arial.ttf"))
         return EXIT_FAILURE;
     sf::String Text("\t \t Welcome to OpenGL Project \n \t \t \t \t \t \t \t \t \t \t \t By Rahul ", Arial, 50);

    while (App.IsOpened())
     {
         // Process events
         sf::Event Event;
         while (App.GetEvent(Event))
         {
             // Close window : exit
             if (Event.Type == sf::Event::Closed)
                 App.Close();

            if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
                App.Close();

         }

         // Clear screen
         App.Clear();

         // Draw the sprite
         App.Draw(Sprite);

         // Draw the string
         App.Draw(Text);

         // Update the window
         App.Display();
     }

    std::cout<<" thank you for using the program ";
    getchar();

     return EXIT_SUCCESS;
 }



Now , if i want the welcome text to be entering into the window (scroll) is there any way to do that.. ?

6
General / Installing sfml with code block
« on: March 13, 2010, 10:51:26 pm »
I have installed the sfml according to the instruction given in the site .
Like i have placed the .h files in include folder and also placed the lib files in lib folder.
in ht linker settings . i have linked linked all the e3 in order .
Though i am compiling the normal program , i am getting an error saying

parse
parse

in line 85 and 97 of file Unicode.hpp

Pages: [1]