Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About stringa

  • Rank
  1. I have done this. Compile your gamecode into libraries, and compile them with Managed CLI compiler option turned on. You will then pass the HDC into your GFX init function, which will then init graphics library. You have to pump your simulation loop manually. I used a C# Timer... I used Managed C++ to create my editor... I think you have to write a Managed C++ layer, before you can access with C#...Thus I just used Managed C++ to write the editor code. stringa [Edited by - stringa on December 20, 2010 11:42:02 PM]
  2. Unity 3D and Unreal are both free to try. Unity is probably easier for a Beginner and uses .NET for scripting.
  3. Yes. My own content management system.
  4. So basically, my engine gives me a stream which contains the binary representation of a .wav file. I need to somehow load this and be able to play a sound with XNA. How can I do this? Can I do this at runtime? Thanks. stringa
  5. stringa

    Mouse Lag...

    Sorry, I am also using direct input. The mouse don't lag on most computers. But everyone once in a while, I can find a computer that it will lag about 1/2 a second on. It will not lag on the OS, but it will lag within my .NET environment. It seems to be rare, but it does occur and it can ruin the user experience. I am rendering it as a sprite. Is it possible for a low frame rate to make this occur? thanks, stringa
  6. I was wondering why a mouse would lag in my game at about 0.5 seconds. It doesn't do it within the OS, and it doesn't do it on most computers. Could it be .NET? or Managed DirectX? Could it be drivers? stringa
  7. stringa

    learning opengl

    Well, you don't really need to know much if you just want to do fixed-function stuff. You will need to know how the OpenGL matrix stack works. I would make sure you understand Affine transforms ( 4 x 4 matrices ). If you want to do cool stuff, then you should understand how matrices work and how a vertex goes from an initial model-space position into the world and through NDC and eventually to the view port. If you understand how transforms work, you can then start making cool effects using shaders. I would just suggest that you learn how 4 x 4 matrices work and how the OpenGL matrix stack works.
  8. stringa

    can't read int from file

    This also depends on how you fill your file. If there are spaces between each of the random ints, then you can just use the >> operator as stated above. If there isn't spaces, I would open the file as binary and just keep reading 4 bytes at a time.
  9. stringa

    Precompiled Headers...

    NM....I figured it out. I my second project "NOT USING PRECOMPILED" I just included a dummy file that has the same and a relative path as the precompiled. Walla....It works. I'm not 100% sure why it doesn't work with MACRO defines, but this way seems to do it.
  10. 1. I have a multiple project solution. 2. One solution contains pre-compiled headers (PCH) and one doesn't. 3. I have a .h/.cpp which I want to include in both projects. I currently have the following code at the top of my .cpp #ifndef FBX_TO_BINARY #include "GraphicsPrecompiled.h" #include "../GraphicsInclude.h" #else #include "NewModelFuncs.h" #endif This is not working and giving the following errors.. 1>.\NewModelFuncs\NewModelFuncs.cpp(7) : fatal error C1019: unexpected #else Is it even possible to do this and if so, how? Thanks, stringa
  11. so it looks like i can only run SwapBuffers() in the Paint() procedure ? Is this true? Is there a way around this? thanks stringa
  12. Well, I got everything compiling and linking, I just can't get OpenGL to clear the Panel component. I'm sending opengl a handle to a panel. I though maybe the panel could be painting over anything opengl does?
  13. I've enabled everything as CLR. Well, this is all the link errors I got left.... As you can see, they are all my windows calls : 1 for timeGetTime and 3 for setting up and running openGL in a win32 window. How can I fix this? tia, stringa 8>AIEngine.lib(Time.obj) : error LNK2001: unresolved external symbol "extern "C" unsigned long __stdcall timeGetTime(void)" (?timeGetTime@@$$J10YGKXZ) 8>GraphicsEngine.lib(GFXEngine.obj) : error LNK2001: unresolved external symbol "extern "C" int __stdcall SetPixelFormat(struct HDC__ *,int,struct tagPIXELFORMATDESCRIPTOR const *)" (?SetPixelFormat@@$$J212YGHPAUHDC__@@HPBUtagPIXELFORMATDESCRIPTOR@@@Z) 8>GraphicsEngine.lib(GFXEngine.obj) : error LNK2001: unresolved external symbol "extern "C" int __stdcall ChoosePixelFormat(struct HDC__ *,struct tagPIXELFORMATDESCRIPTOR const *)" (?ChoosePixelFormat@@$$J18YGHPAUHDC__@@PBUtagPIXELFORMATDESCRIPTOR@@@Z) 8>GraphicsEngine.lib(GFXEngine.obj) : error LNK2001: unresolved external symbol "extern "C" int __stdcall SwapBuffers(struct HDC__ *)" (?SwapBuffers@@$$J14YGHPAUHDC__@@@Z) [Edited by - stringa on April 27, 2009 2:01:14 PM]
  14. Tried to make a post modification but it didn't seem to go through. The complier is acting like I didn't include the libraries, but I did. Do I have to define some sort of extern so it knows how to link the functions? thanks, stringa
  15. I got 34 of these... Error 17 error LNK2028: unresolved token (0A0000B3) "public: __clrcall quat::quat(float,float,float,float)" (??0quat@@$$FQAM@MMMM@Z) referenced in function "void __clrcall `anonymous namespace'::`dynamic initializer for 'void __clrcall quat_id::A0x604c53a7(void)''(void)" (???__E?A0x604c53a7@quat_id@@YMXXZ@?A0x604c53a7@@$$FYMXXZ) Editor.obj I'm trying to link my regular c++ libraries into a WinForms Application. Basically, I'm creating a level editor for my game and I want to use .NET but still keep it c++. It's like I didn't include the libraries, but i did. Do I have to use some sort of extern so that It know's how to link the functions? thanks in advance... stringa
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!