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.


Messages - Xyro

Pages: 1 2 [3] 4
31
DotNet / Drawing polygon
« on: January 03, 2011, 08:46:50 pm »
Fuck just read the other topic, I'll see if it auto updated or something. I'll probably downgrade it otherwise ...

32
DotNet / Drawing polygon
« on: January 03, 2011, 07:58:50 pm »
Oke well this is weird, everything worked as expected yesterday. when I wanted to check out if this worked it just stopped working. I managed to find out that it hangs on creating renderwindow

It just opens the console and it goes to the creating of the renderwindow and just hangs there no crash no errors.

Tried removing underthings and just opening a simple window. also tried re downloading. any  suggestions ?

33
DotNet / Drawing polygon
« on: January 01, 2011, 05:57:38 pm »
For some reason I can't get a polygon to draw, it only shows a blank screen.

Code: [Select]

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SFML;
using SFML.Window;
using SFML.Graphics;

namespace MusicSFML
{
    class World
    {
        Shape polygon = new Shape();
        public RenderWindow renderWindow = new RenderWindow(new VideoMode(1280, 720, 32), "Look at this it may even work");

        public World()
        {
            renderWindow.Closed += new EventHandler(OnClosed);
            renderWindow.KeyPressed += new EventHandler<KeyEventArgs>(OnKeyPressed);

            polygon.AddPoint(new Vector2(10, 10), Color.Black);
            polygon.AddPoint(new Vector2(50, 10), Color.Black);
            polygon.AddPoint(new Vector2(50, 30), Color.Black);
            polygon.AddPoint(new Vector2(10, 30), Color.Black);
            polygon.Color = Color.Black;
            polygon.EnableFill(true);
            polygon.EnableOutline(true);
        }

        public void Think()
        {
            // Proccess events
            renderWindow.DispatchEvents();

            float frameTime = renderWindow.GetFrameTime();
        }

        public void Draw()
        {
            renderWindow.Clear(Color.White);
            renderWindow.Draw(polygon);
        }

        void OnClosed(object sender, EventArgs e)
        {
            RenderWindow window = (RenderWindow)sender;
            window.Close();
        }

        void OnKeyPressed(object sender, KeyEventArgs e)
        {
            RenderWindow window = (RenderWindow)sender;
            if (e.Code == KeyCode.Escape)
                window.Close();
        }
    }
}

34
Graphics / (Render)window won't open
« on: November 13, 2010, 09:22:43 pm »
Recently started c++ again so I downloaded the newest 2.0 and compiled it using the tutorial on the tutorial page.

Pasted all the libraries inside the new project where the executable is and specified where the compiled libraries where in vs2010 and the include folder.

It successfully compiled the time sample, then I moved on to the window sample which it did compile but it doesn't do anything it doesn't open a new window or anything just the normal console.

I though well lets try it with the render window, same story so :

No window
Just a console window

No errors only this output :

Code: [Select]


'sfml.exe': Loaded 'C:\Users\Quincy\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml.exe', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Users\Quincy\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml-window-d-2.dll', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Users\Quincy\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml-system-d-2.dll', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Users\Quincy\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml-graphics-d-2.dll', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\atiglpxx.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\atioglxx.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\atigktxx.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\aticfx32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\atiadlxy.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
The program '[6764] sfml.exe: Native' has exited with code 0 (0x0).


And this is my code :

Code: [Select]

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

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
   
    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


also tried the sample code same results.

I'm using vs2010 with sfml 2.0 and windows 7 64bit

35
General / SFML and Visual Studio 2010 Beta 1 (Visual C++ 10 only)
« on: February 18, 2010, 06:37:37 pm »
Where is the property manager

36
General discussions / Visuel c++ 2010
« on: January 22, 2010, 04:33:22 pm »
http://www.sfml-dev.org/forum/viewtopic.php?p=8576

I tried using this only I get stuck on the first step, I can find my property manager :S

I looked at views->other windows but I couln't find it. Is it because I have the  expres edition.

37
General discussions / Visuel c++ 2010
« on: December 29, 2009, 01:12:42 pm »
Just added it but it just keeps giving me the same error, also should I add sfml-main-d ? or just sfml-main (tried with both but still a error)

38
General discussions / Visuel c++ 2010
« on: December 29, 2009, 01:47:02 am »
Code: [Select]
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
   
    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


Added the sfml-main still keeps crashing with the bad init.

39
General discussions / Visuel c++ 2010
« on: December 29, 2009, 01:08:00 am »
Quote from: "Laurent"
Can you give the complete list of libraries for your debug configuration?


Sorry, I've started programming some months ago and this is the first external library I'm using care to explain ? If you mean what libraries I'm using  these :

sfml-graphics-d.lib;sfml-window-d.lib

40
General discussions / Visuel c++ 2010
« on: December 29, 2009, 12:03:26 am »
Quote from: "Laurent"
Are you sure that you're not mixing debug mode and release libraries?


I used sfml-graphics-d.lib :S

41
SFML projects / Hexagon Puzzle Thing
« on: December 28, 2009, 11:27:53 pm »
Saw this on facepunch(right ?) looks awesome.

42
General discussions / Visuel c++ 2010
« on: December 28, 2009, 10:32:10 pm »
Quote from: "Laurent"
You can just press the green arrow (that starts the application with the debugger), it will recompile what's not up-to-date.

Regarding your linker errors, I think that you just forgot to link sfml-window.lib.


Wow, Didn't know I had to add the window library to the additional dependencies also, but now its compiling and giving me a popup error : (i'm dutch so i'l try to translate it)

Cannot correctly initialize the application (0xc0150002).  

and then it shuts down the program. I'm trying to compile the basic code the tutorial(graphics) provided for testing.

I really like the new vc++ 10 but on the old one sfml at least worked xD

43
General discussions / Visuel c++ 2010
« on: December 28, 2009, 10:22:06 pm »
Quote from: "Laurent"
What error do you get?


Code: [Select]

1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::Close(void)" (?Close@Window@sf@@QAEXXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::IsOpened(void)const " (?IsOpened@Window@sf@@QBE_NXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function _main
1>C:\Users\Quincy\documents\visual studio 2010\Projects\Neural\Debug\Neural.exe : fatal error LNK1120: 5 unresolved externals


Just tried to build the solution again and replaced all the files but still no luck.

44
General discussions / Visuel c++ 2010
« on: December 28, 2009, 10:15:46 pm »
Quote from: "Laurent"
I guess you've already compiled your own source code? Well, compiling SFML is not more complicated: just open the solution file and press "rebuild all" ;)

It is even explained in the "getting started" tutorial, if you need more details.


Cant get it to work, I downloaded the full sdk then I tried to open it with vc++ 10 I had to convert the file(from the 2008 build) so I did, then I Compiled it all and tried to use the library files but they still don't work.

45
General discussions / Visuel c++ 2010
« on: December 12, 2009, 11:26:11 pm »
Quote from: "Laurent"
You can recompile SFML, it should work.


Never recompiled a libary :(

Pages: 1 2 [3] 4
anything