Hi, i've been scanning through the boards and I have came across a few threads that have contained the words "Resource Manager". What is the general description for this?
Type: Posts; User: beene
Hi, i've been scanning through the boards and I have came across a few threads that have contained the words "Resource Manager". What is the general description for this?
Learn how to use classes and structs and maybe enums. You can keep your code clean and manage everything alot easier than what you are doing now.
I am coding my framework for my DirectX applications and I don't like the message loop that is used in my book:
int EnterMsgLoop(bool (*ptr_display)(float timeDelta))
{
MSG msg;
...
Everytime you install a game, DLL's are all thats in the directory, and you see no source files. I was wondering what the use of a DLL is and how I would implement one in my engine?
Thanks.
...
CRenderDevice::CRenderDevice(HINSTANCE ChInstance)
{
CInitD3D( /*If CInitD3D fails*/
ChInstance, /*Application instance*/
450, /*Application width*/
375, /*Application height*/
true,...
Just comment out engineInstance.stopWindow() in main.cpp and then run it.
Right, I changed it around abit and now have the error:
error C3867: 'CRenderDevice::CDisplay': function call missing argument list; use '&CRenderDevice::CDisplay' to create a pointer to...
Nothing important.
So should I make Device global?
I've gone over what you have posted and I think I know where you're coming from, but I don't know how to fix it without declaring the variable global.
Thanks, that was a stupid error on my part, I can't believe I didn't see that before, but what about the other errors?
Hi.
I've made a start on my game engine. I only have 1 class so far.... CRenderDevice. I don't know if that's the only class I need for rendering the window right now, but we'll come to that...
As stated in the title, I was wondering how I would go about creating computer graphics in a move, say like Ice Age 2. What skills would i need to do something like that? I know that i'm really far...
Thanks, HURRY =P
Yeah but on different lines there's a different amound of words, like say the 1st line, it only has 1 word in it, and the second has 2, how am i supposed to format that?
I've widened it as far as it will go and it still doesn't work, and there is also paragraphs in the text file but they aren't distinguished in the console window. Any ideas?
IT WORKS!!!!! Don't ask me how i got rid of the the warning, it jus dissapeared. But then i read the introduction to my game into the program and this happened:
DARN!!!! Can't upload a screenshot,...
Thanks, it was #include<iterator>, i now get a warning saying:
warning: deleting 'void*' is undefined
The line in which this warning occurs in is:
I have implimented your method twomers, but i get this error:
error: 'ostream_iterator' is not a member of 'std'
...any ideas?
You might have to help me through this, I need you to explain a few things about your code, if you don't mind ofcourse.
#include <algorithm>
....what's that there for?
Well, what's the error(s)?
Never really thought of that, how would i go about that? Is there an easier way?
Yes, there's something in example2.txt, and in my game there's going to be more than 1 text file so i want to distinguish between them and read them when i choose to, that's why i used std::string...
Thanks, that did work, but then i loaded up another file and nothing printed.....very strange.....
Anyways, heres the code:
CFile_mngr.h
#include<fstream>
#include<vector>
Thanks, i'm not on the ball tonight :'(
How would I go about adding each line to different elements in the vector i now have?
I have created what looks like a basic file manager class for my text engine, it compiles and runs with no warnings but it dusn't ouput the text in the file.
I have no idea how to fix it, maybe...