• What Are You Working On? V13
    5,003 replies, posted
[QUOTE=xAustechx;25895575]Oh geel9, will he ever learn? [i]*sitcom laughs*[/i][/QUOTE] No :saddowns:
[QUOTE=neos300;25959851] [editline]9th November 2010[/editline] Why can't you do it yourself?[/QUOTE] Because I have no Idea how, I know how some basic stuff in c++ works as in arrays, vectors, pointers, dynamic allocation and classes etc. but I always had trouble with using or compiling external libraries. The thing is I sure as hell have no idea on how to compile it against .net 4.0
[QUOTE=quincy18;25970487]Because I have no Idea how, I know how some basic stuff in c++ works as in arrays, vectors, pointers, dynamic allocation and classes etc. but I always had trouble with using or compiling external libraries. The thing is I sure as hell have no idea on how to compile it against .net 4.0[/QUOTE] You know that C++ isn't .NET right? Sure, there's C++/CLI, but that's C++/CLI, not C++. You're going to need to use a .NET language to use it. You can also use pre-4.0 libraries in a 4.0 project, just don't use libraries that supersede your own project.
I love Yahoo answers sometimes. I found a question, something along the lines of "What is C#?" One of the answers: [quote]C-Sharp its a programming language used to prepare codes to make the softwares.[/quote]
Any ideas why SFML window freezes, when I run it, I can't move it around, or nothing, here is the code, #include <iostream> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; int main() { sf::Window App(sf::VideoMode(800,600,32),"SFML-FML"); App.Create(sf::VideoMode(800,600,32),"SFML Windows"); bool loop = true; while(loop) { App.Display(); } return 0; } I've followed tutorial from here [url]http://www.sfml-dev.org/tutorials/1.6/window-window.php[/url] Where are tags on this forum???
[QUOTE=udp11;25971737] [cpp] #include <iostream> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; int main() { sf::Window App(sf::VideoMode(800,600,32),"SFML-FML"); App.Create(sf::VideoMode(800,600,32),"SFML Windows"); bool loop = true; while(loop) { App.Display(); } return 0; } [/cpp] [/QUOTE] Use [cpp ] and [/cpp ] (without the spaces)
[QUOTE=udp11;25971737] Where are tags on this forum???[/QUOTE] You're not using them?
[QUOTE=arienh4;25970790]You know that C++ isn't .NET right? Sure, there's C++/CLI, but that's C++/CLI, not C++. You're going to need to use a .NET language to use it. You can also use pre-4.0 libraries in a 4.0 project, just don't use libraries that supersede your own project.[/QUOTE] Yeah I know but the lua source is in C++ , and they said I had to compile it against .net 4.0 to use it inside a net 4.0 project. currently its only precompiled for 3.5
[QUOTE=udp11;25971737]Any ideas why SFML window freezes, when I run it, I can't move it around, or nothing, here is the code, #include <iostream> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; int main() { sf::Window App(sf::VideoMode(800,600,32),"SFML-FML"); App.Create(sf::VideoMode(800,600,32),"SFML Windows"); bool loop = true; while(loop) { App.Display(); } return 0; } I've followed tutorial from here [url]http://www.sfml-dev.org/tutorials/1.6/window-window.php[/url] Where are tags on this forum???[/QUOTE] Why are you creating two windows? And what do you mean with 'moving it around'? The window?
[QUOTE=udp11;25971737]Any ideas why SFML window freezes, when I run it, I can't move it around, or nothing, here is the code, #include <iostream> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; int main() { sf::Window App(sf::VideoMode(800,600,32),"SFML-FML"); App.Create(sf::VideoMode(800,600,32),"SFML Windows"); bool loop = true; while(loop) { App.Display(); } return 0; } I've followed tutorial from here [url]http://www.sfml-dev.org/tutorials/1.6/window-window.php[/url] Where are tags on this forum???[/QUOTE] You don't need to call the constructor and Create(), pick one or the other.
And it freezes because you aren't handling any Win32 events. Look up how to do events [url=http://www.sfml-dev.org/tutorials/1.2/window-events.php][b]here[/b][/url].
[QUOTE=Overv;25972409]Win32 events[/QUOTE] [img]http://bitelia.com/files/2010/09/sad-tux-e1284940956286-100x100.jpg[/img]
[QUOTE=Jookia;25972497][img_thumb]http://bitelia.com/files/2010/09/sad-tux-e1284940956286-100x100.jpg[/img_thumb][/QUOTE] [img]http://upload.wikimedia.org/wikipedia/en/1/1f/Sad_mac.png[/img]
[QUOTE=quincy18;25971830]Yeah I know but the lua source is in C++ , and they said I had to compile it against .net 4.0 to use it inside a net 4.0 project. currently its only precompiled for 3.5[/QUOTE] Uh no Lua is written in C.
[QUOTE=thelinx;25974149]Uh no Lua is written in C.[/QUOTE] I meant lua interface and I just noticed that that is in c# ... So I screwed up
oh I see
[QUOTE=udp11;25971737]Any ideas why SFML window freezes, when I run it, I can't move it around, or nothing, here is the code, #include <iostream> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; int main() { sf::Window App(sf::VideoMode(800,600,32),"SFML-FML"); App.Create(sf::VideoMode(800,600,32),"SFML Windows"); bool loop = true; while(loop) { App.Display(); } return 0; } I've followed tutorial from here [url]http://www.sfml-dev.org/tutorials/1.6/window-window.php[/url] Where are tags on this forum???[/QUOTE] Just use this template: [cpp] #include <SFML/Graphics.hpp> int main() { sf::RenderWindow App(sf::VideoMode(640, 480), "SFML Graphics"); while (App.IsOpened()) { sf::Event Event; while (App.GetEvent(Event)) { if (Event.Type == sf::Event::Closed) App.Close(); } App.Clear(); App.Display(); } return EXIT_SUCCESS; } [/cpp]
[QUOTE=quincy18;25971830]Yeah I know but the lua source is in C++ , and they said I had to compile it against .net 4.0 to use it inside a net 4.0 project. currently its only precompiled for 3.5[/QUOTE] You don't. I'm not trying to be [b]too[/b] harsh here, but why are you developing for .NET knowing nothing about it?
[img]http://dl.dropbox.com/u/99765/23725435.png[/img] lightmaps next!
[QUOTE=layla;25975060][img_thumb]http://dl.dropbox.com/u/99765/23725435.png[/img_thumb] lightmaps next![/QUOTE] That looks awesome! I'm just gonna assume you can drive that around.
[QUOTE=layla;25975060][img_thumb]http://dl.dropbox.com/u/99765/23725435.png[/img_thumb] lightmaps next![/QUOTE] Is this DirectX or openGL?
Nope, it's some crappy brush based map from fpsbanana [editline]10th November 2010[/editline] [QUOTE=Richy19;25975105]Is this DirectX or openGL?[/QUOTE] ogl
[QUOTE=layla;25975060][img_thumb]http://dl.dropbox.com/u/99765/23725435.png[/img_thumb] lightmaps next![/QUOTE] What happened to fortblox?
[QUOTE=i300;25975144]What happened to fortblox?[/QUOTE] Nothing, just been cleaning some stuff up here and there so there's nothing to show.
[QUOTE=layla;25975111]Nope, it's some crappy brush based map from fpsbanana[/QUOTE] Oh.
Finally, ban over! Sweet sweet freedom :v: Thinking of starting on a strategy-ish game in C++ and SFML, don't know yet. Can anyone recommend any other simple graphics libraries for C++?
[QUOTE=layla;25975060][img_thumb]http://dl.dropbox.com/u/99765/23725435.png[/img_thumb] lightmaps next![/QUOTE] I just thought this was the map pimpage thread and I nearly rated you dumb
[QUOTE=iNova;25975909]Finally, ban over! Sweet sweet freedom :v: Thinking of starting on a strategy-ish game in C++ and SFML, don't know yet. Can anyone recommend any other simple graphics libraries for C++?[/QUOTE] SDL? But SFML seems to be the better and more popular choice, now, anyway.
Any what's wrong with C#/OGL? :(
[QUOTE=Darwin226;25976556]Any what's wrong with C#/OGL? :([/QUOTE] OGL is too complicated for a feeble mind like mine. :( [QUOTE=BlkDucky;25976527]SDL? But SFML seems to be the better and more popular choice, now, anyway.[/QUOTE] Some people have trouble running SFML apps , so I've heard. (hint hint Inzuki)
Sorry, you need to Log In to post a reply to this thread.