- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
55 Posted Topics
Hello guys, I've been playing with Direct2D lately, and found out (from a presentation) that converting geometries into meshes makes rendering a lot faster So, how do I do this? I tried this: [CODE] hr = RenderEngine.D2DFactory->CreateRectangleGeometry(D2D1::RectF(0,0,10,10), &pGem); hr = RenderEngine.RenderTarget->CreateMesh(&pMesh); hr = pMesh->Open(&pSink); hr = pGem->Tessellate(D2D1::Matrix3x2F::Identity(), pSink); hr = … | |
Re: umm, what do you mean with "coding"? any other language than what you mentioned? | |
Re: There is no loop in your main function, so if someone wants to see the changes, he can't. You could sort the names by making a a loop with i as the index of the array, then just look at array[i] and array [i+1] and see which one should come … | |
Re: this is certainly homework, Why do you actually choose to have this at school if you don't want to take the time write your algorythms? i'll give you a start: [QUOTE] #include <fstream> #include <iostream> using namespace std; int main(){ // all you have to do is this part return … | |
Re: I've done the following: I learnt C++ from tutorials on the internet and a book C++ by Steven Holzner. Then I bought the book Programming Windows -Fifth edition by Charles Petzold (although I didn't finish it, i came half, but found out that it was enough for game programming) Then … | |
Re: You shouldn't start on a browser based game as your first project. First learn to deal with big projects, because when the file sizes start to grow, you'll find yourself lost in the code and stop with the project. It happend with me.. I wrote my code, it worked, but … | |
Re: Just reading trough this, but why is if(1 == aValue || 2 == aValue) better legal than the other (just legal) one? | |
Re: If it doesn't compile, providing the errors would really help because i don't feel like testing the code myself. | |
Re: Why don't you do it with vectors? it's alot less work. Just define a vector with a specified length (your speed) and use a rotation matrix to rotate it the amout of degrees. Then add each component of the vector to your position. Just google on the terms vector and … | |
Re: Well, you can make simple games (not using the RSX chip) using the linux operating system on (most) ps3s Then I think it's just standard linux game development. But if you're new to all this, start developing for just one platform, the PC + you can find more stuff about … | |
Hello, I've been trying to get into game programming. So I learnt a simple 2d api, Direct2D because it has great documentation on msdn and started planning/programming my first game: a tetris clone. All went well, and I also added sound and such, but now I want to add a … | |
Re: I might be very wrong, but from your post, i can understand that your c++ skill isn't that much. Why don't you try to make the program console based? It's much easier and can do what you want just as good (which is calculating numbers using different parameters) Using cin … | |
Re: It's easy, INPUT size of square side OUTPUT size times * OUTPUT * then output size-2 times space then output * do this size-2 times then finish it with OUTPUT size times * Try to translate this into c++ Hope this helps | |
Re: Here you go, it's actually quite easy [CODE] #include <iostream> #include <typeinfo> // Needed for the typeid using namespace std; int main() { int variable = 100; cout<<"The variable type is: "<<typeid(variable).name()<<endl; // pause or something return 0; } [/CODE] Output: The variable type is: int If you want to … | |
Re: I suggest using Direct2D (If you have a vista or windows 7 computer) The documentation on MSDN is very well written and can get you started in an hour or two. If you just want to learn how to create 2d games, it shouldn't really matter if the code is … | |
Re: [CODE=CPP]#include "stdafx.h" #include <iostream> using namespace std; int main() { int total = 0; double average = 0.0; int grade[100]= {56,97,73,59,68,79,86,67,79,66, 95,64,98,56,79,83,75,89,73,91, 52,72,63,81,62,85,37,78,100,89, 56,89,75,76,99,66,84,98,68,59, 98,77,96,88,67,88,95,79,56,79, 56,97,43,59,68,79,85,67,79,66, 95,64,98,65,79,83,75,89,73,91, 52,72,63,49,62,85,37,78,100,89, 84,89,75,76,99,66,84,98,68,59, 98,77,96,88,67,88,95,79,56,79}; char pause; for(int j=0; j<100; j++) { total=total + grade[j]; } average=total/100; cout<<"Your average is "<<average<<endl; cin>>pause; return 0; }[/CODE] … | |
Re: Output question. Output possible answers. Ask for input (A character) Check if answer is correct. Move to next question. Hope this helps | |
![]() | Re: If you want to use the engine which was used to create World of Warcraft, then forget about it. If you're talking about some other engine called the "wow engine" then try looking at the documentation. I don't think it's a well known engine, so your best bet is to … |
Re: I once started creating a PHP-based game. I just had a few ideas, basic lore, and started making the database and scripting. You know, first the account system, to log in and and such, then started creating more specific game stuff, but it's not only the time that it takes … | |
Re: why don't you make your own function using <ctime>? Just let it loop for a second every time. | |
Re: I've been using PHP designer for a year or two and i'm happy with it. If you make a mistake (syntax error) it directly notifies you (you dont need to press debug or something to get notified) It also suggests variable names (that you've used before etc.) and other basic … | |
Hello, I'm making a browser based game in php and so far it's going really good. However I have a doubt about a script i've written. This script does alot of calculations using the data from the mysql database i'm using. So it reads and writes quite alot. And the … | |
Re: A program starts at main() or another function with _stdcall in front of it. This is just a class, so you'll prolly still need to create the class/run the constructor to start it. | |
Re: By looking at the topics covered at amazon, [CODE]Topics covered: Introduction to C++ Console I/O with stream classes Basic string handling Loop and flow-control statements Arrays Using functions and methods Using Standard Template Library (STL) containers (vectors, linked lists, and maps) Iterators Sorting and generic functions Basic class design Pointers … ![]() | |
Re: Maybe semantic errors? that the code works but doesn't do what you want? no idea if sematic is english, (i translated it loosely from dutch) | |
Re: You could put all your non-inline functions in another source file instead of a header file. That would make sure they aren't defined multiple times when your project grows. | |
| |
Re: You could do this using autoit, but you can also do it using C++ and WinApi (windows.h) So, you start a source file, make the main func etc. Be sure to include windows.h (and maybe also iostream for easy io) Get the HWND of the browser window using [B]FindWindowEx()[/B] (function … | |
Hello, I've got this project where i need to use a webcam. I'll need to get every frame made by a webcam (uncompressed) and send it to my program. My program should extract some information out of the frame and then get the next frame and do the same with … | |
Re: You won't be able to draw something in a coordinate system using only c++ (console programs). The only way I know of drawing things is using WinAPI, but it's not as easy to learn in an hour or two. | |
Hello guys, I was making a website, all looked great, untill I started IE7. there, it really looked like crap. Now I'd like to just make another css file for IE6 and/or IE7 but not for IE 8, because it does look wel at that browser. How can I detect … | |
Hello, A few days ago I visited a lecture of a teacher in an university that was about parallel processing. He explained why it's good etc, and how you can make programs that use multiple cpus in C. He used MPI and the code looked nice, wasn't too hard and … | |
Re: So putting cin>>somevariable; before the return 0; doesn't work? | |
Re: Compiled id, kindda funny ya, though... Not really usefull to be honest :P | |
Re: Yeah, i'd also suggest using the gamemaker official PDF tutorials, if you go trough all of them, then you could call yourself and advanced gamemaker "game maker" And btw, CoolGamer 48, gamemaker wasn't bought by yoyo games, what happens was this: the creator used gamamaker under the license of the … | |
Re: I used to use Dev-CPP, it's nice.... Though i use VS2005 | |
Re: perhaps the drivers of graphics cards also used to know the right memory locations etc for directx and opengl... at the end, GDI also has been made by man kind, so i think parts of some rlly low-level things are asm. | |
Re: you forgot a ";" ^^ at what line does it expect but not find? | |
Re: maybe if you staticly link ALL you use libraries? maybe? :P I once did, and had no probs with deploying, now i use the real visual c++ :D | |
Hi guys I don't request any code help, just want to know how they make windows with themes like this: [url]http://www.codeproject.com/KB/library/PrettyWinApiClass/DevStudioSmall.jpg[/url] or like office 2007 Do they do it with winapi, directx, .net or is it possible for all of em' And ehm, another question: does winapi have a future? … | |
Re: in my oppinion you're learning fast enough :P Continue that way and you'll be a guru in no-time :P and ehm, why openGL instead of DirectX? | |
Hello, Lateley, I was searching for a good WinAPI book (for c++ ofcourse) After a while searching, i found this book: Programming Windows, 5th Edition by Charles Petzold The book looks good and is nice and thick (1500 pages or something) But where I worry about it the age of … | |
Re: If it's free, then could you give me links to tutorials etc for the Unreal T3 engine? If i know how hard/easy it is, then i'd better be able to make up my mind... Anyways, what network engine are you using? (or is it built in in the unreal T3) | |
Re: i'd advice you to use fstream for filehandling, it's easier to use and uses the same trusted << and >> ways of the iostream | |
Re: Dude, that's spam aswell what you are saying, here, i'll help you: If you want to create a game quite fast, then i suggest learning the Irrlicht engine, it's quite easy to understand and you start off really quick. Though, if you want to do something more serious, you'd get … | |
Re: I've modified the script a bit [CODE] #include <iostream> using namespace std; int main() { srand(time(NULL)); unsigned int lotteryBall; for(int i = 0; i <=7; ++i) { lotteryBall = rand() % 48 + 1; cout << lotteryBall << " "; if(i == 7) lotteryBall = rand() % 48 + 1; … | |
Re: So you want the program to print out the name of every player and you need to enter the goals at every player? | |
Re: Looks to me like a homework assignement... try using fstreams file>> | |
The End.