Jump to content
  • Advertisement

Twon

Member
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

145 Neutral

About Twon

  • Rank
    Member
  1. Using the __declspec(align(16)) command to align variable will only work for static and stack allocated variables. If you create a new instance of Matrix by using the new operator or have an instance of a Matrix variable with an object you create through the new operator you have no control over the alignment of the Matrix. You can try allocating matrices with the _aligned_malloc() and _aligned_free() ( there are various other aligned allocator availible as well ). If a Matrix is a member of a class then you need to make sure it is in an aligned position in the overall memory usage of the class and you allocate the class with an aligned allocator. If you have ever looked at direct X's aligned matrix class D3DXMATRIXA16 then you may have noticed that they overload the new an delete operators so that any dynamically allocated instance of a D3DXMATRIXA16 is automatically aligned for you to get around just this problem. Hope that is some help.
  2. Hi, you may find this reseach of some use, titled "Cache-Oblivious Mesh Layouts", it is from this years Siggraph conference, although it is aimed at very large scale meshes. You can find it at http://gamma.cs.unc.edu/COL/
  3. Twon

    Replacement for MFC

    Try wxWidgets, its like cross platform MFC. You can also try Code::Blocks which is a free open source IDE with multi compiler support developed in wxWidget. http://www.wxwidgets.org/ http://www.codeblocks.org/
  4. Twon

    Saving Directories in VC++ ?

    Infact if you installed the DirectX sdk after you installed Visual Studio 6 it should automatically add the DirectX sdk include and lib directories into your global include and lib setting automatically as long as you have no instances of VS6 open during the installation. You may want to uninstall and reinstall the DirectX SDK. Then again if you are using a version of the DirectX SDK that is newer that the SDK Summer Update 2004 then support for Visual Studio 6 has been removed so aside from not working with Visual Studio 6 naturally it will not add the directories to the global includes and lib settings.
  5. Twon

    Saving Directories in VC++ ?

    If you are using VS2002 or VS2003 then use the menu option Tool->Option->Projects->VC++ Directores, select "show directories for: include files", browse to the DirectX include directory and move it up to the top of the directory list. Also make sure you only have one copy of Visual Studio open when you do this.
  6. Twon

    CPUID Instruction

    http://developer.amd.com/documentation.aspx - try the AMD64 Architecture Programmer's guides volumes 1 - 5, there should be mention of the CPUID instuction in there.
  7. Twon

    DirectInput error

    Hi, I think that you will find that c_dfDIJoystick is a global variable declare internally to Direct Input and made global through an "exter" command. By the sound of your error message Quote:The procedure entry point c_dfDIJoystick could not be located in the dynamic link library dinput.dll. Dev-Cpp seems to be miss interpreting c_dfDIJoystick as a procedure and not a variable. Have you converted the libraries to the ".a" format required by Dev-Cpp as suggested in the article highlighted by jollyjeffers?
  8. Try GetActiveWindow() to get the HWND and you may be able to get the HINSTANCE by using GetModuleHandle() you program is wrapped up in a DLL, if not then I'm not sure about getting the HINSTANCE.
  9. Cheers, that all makes sense and will make this task somewhat more straightforward.
  10. Cheers Evil Steve, this is something we have already considers doing and as things stand it looks like the best solutions will be to try this and if it fails rely on using the registry. I did not know about the DirectX sample program you have mentioned but have just checked it out (cheers Darookie) and it looks useful. Nmi I've just had a look on two computers, one with an ATI Mobility 10 and one with a NVIDIA 6600 and this seems to work great. Do you know what the effect of having a new Graphics card installed would be on this? Would the old entry be removed, would the new card become the entry at "Device0"? Excuse my ignorance but playing with the registry is fairly new to me. Thanks for every body’s help with this.
  11. Actually we use commercial 3D engine to produce our application, which itself uses DirectX 9.0c. Ideally we would like to have this information before the part of our application that relies on 3D engine runs as we will choose which assets will be deployed for the application over a network to the client machine based on the client’s capabilities. As for SDL we would not want to add an additional library just for this purpose but a good none the less. The more I look into it the more relying on DirectX seem the solution.
  12. Firstly thanks for such a quick response, its much appreciated. We need to check if a graphics card has 32Mb as is the minimum spec that we support. We have run our application on out test PCs, which are a lower spec, but get a frame rate of about 5 - 12 fps which is too low. I am trying to stay away from any graphics API because school computers in the UK tend to be anything from brand new to 7 years old and I am fairly sure that direct X 7 would not be supported on a machine that old. We have considered using the registry but would prefer a method that checks dynamically if possible.
  13. Hi, I am hoping that someone may be able to help with a problem that I am having, I need to be able to establish the graphics card of a PC without relying on a graphics API to do so. Ideally there would be some kind of windows functions to do this. Basically this is for a game based learning application (www.caspianlearning.co.uk) which will runs on the Windows platform going as far back as Windows 98. We need to be able to check that a PC has a 3D graphics card with 32Mb of ram, and given that the target audience is the School market they are likely to be years behind the times interns of hardware and software. I have searched MSDN and googled without any joy. Any assistance in this matter would be greatly appreciated. Cheers.
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!