CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: David2010

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,697

    Re: Echo recreation in assembly review.

    The improvements were more in terms of readability in this case. I made a few minor changes to help performance but I doubt it would shave off any more than a couple milliseconds.

    Using the nasm...
  2. Replies
    5
    Views
    1,697

    Re: Echo recreation in assembly review.

    Do you really think I am going to win? :-D

    My original plan was to just concatenate the string to a buffer defined in ".bss" however I couldn't seem to wrap my head around exactly how to do such a...
  3. Replies
    5
    Views
    1,697

    Echo recreation in assembly review.

    I am trying to win a bet with a friend of mine on whos "echo" recreation is more efficient. Executable size also matters but pure raw speed is what is important.

    This really isn't a "help me" kind...
  4. Replies
    2
    Views
    1,285

    Re: The dreaded sound problem.

    BUMP.

    Still haven't figured this out.

    Six days later. :-/
  5. Replies
    7
    Views
    2,770

    Re: What's wrong with my code? =[

    Don't sweat it.

    Java is a really difficult language to learn. Its on par with learning C++ in my view.

    Heck I have a 1,247 page book covering Java and it only covers the basic to intermediate....
  6. Replies
    2
    Views
    1,285

    The dreaded sound problem.

    Ok I have been trying for a week now to get sound to play in a Java applet.

    With enough research I figured out how to get sound to play in the appletviewer using ".wav" files but I still don't get...
  7. Replies
    8
    Views
    8,696

    Re: Java best practice

    Hm... I would have taken this approach.




    boolean b = false;

    if (b == false)

    {
  8. Replies
    7
    Views
    2,770

    Re: What's wrong with my code? =[

    I am fairly new to OOP in Java but I was always under the impression that you always had to create a new class OUTSIDE of your main class in order to make an object out of something.

    Then again I...
  9. Replies
    3
    Views
    1,848

    Re: Creating a Memory Manager in Assembly?

    This allows me to write data to an address:




    proberam:
    wbinvd
    mov ax, 50000
    mov [0x00000600], ax
    mov bx, [0x00000600]
  10. Replies
    3
    Views
    1,848

    Creating a Memory Manager in Assembly?

    This one has puzzled me for a couple days now.

    I need a way to detect how much RAM is being used.

    I have an address range of:

    0x00000500 to 0x00007BFF
    0x00007E00 to 0x0007FFFF
    0x00080000...
  11. Re: C++ fixing memory overflow problems?

    Well I did a little test to see any fluxuations in memory usage over time (like 30 minutes) and it stayed constant so I assume that means no memory overflow is occurring.
  12. Re: C++ fixing memory overflow problems?

    Shouldn't draw() be called every frame? Isn't that the point?

    Anyways...

    I can't believe I missed something as big as that.

    I updated my treetextures.h and my Game.cpp to load the textures...
  13. [RESOLVED] C++ fixing memory overflow problems?

    Ok I made a function for loading textures for opengl but for some reason it just keeps using up more and more memory until the PC crashes. I am 100% positive its this file that is causing the memory...
  14. Replies
    4
    Views
    3,433

    Re: C++ & Freeglut static?

    Sorry.

    hm.... No I did very little (to no) error checking. :-/

    Code is attached.

    EDIT:

    Just caught something that MAY have caused my problem.
  15. Replies
    4
    Views
    3,433

    C++ & Freeglut static?

    I am using this to link my executable:




    g++ -O3 -s -c -o game.o game.cpp -w -D FREEGLUT_STATIC -I"C:\Program Files\Common Files\MinGW\freeglut\include"

    g++ -O3 -s -o game.exe game.o -w...
  16. Replies
    7
    Views
    2,804

    Re: Multiple Textures freeglut?

    Sorry I didn't provide source code earlier.

    I used glm to load and display the OBJ model.
  17. Replies
    2
    Views
    3,379

    Re: I need some help!

    Wow I have WAY to much free time. :-)

    There were several things wrong with your code. I highly recommend a C++ programming book. If you are following one then read more carefully.

    I had to redo...
  18. Replies
    7
    Views
    2,804

    Re: Multiple Textures freeglut?

    Thats the problem though.

    The program loads an OBJ file and displays that model on the screen.

    That and as far as I know, "glBindTexture(GL_TEXTURE_2D, treeTexture.texID);" can only hold one...
  19. Replies
    7
    Views
    2,804

    Re: Multiple Textures freeglut?

    No thats not what I meant. Or at least I don't think it is.

    Lets say I have a 3D room where each wall is a different texture.

    With this function it would automatically put the first texture...
  20. Replies
    7
    Views
    2,804

    Multiple Textures freeglut?

    I am using this code to load the textures for my model.




    //Textures and Texture Tree
    GLuint texture;
    Texture treeTexture;

    bool LoadTreeTextures(char* texturename)
  21. Replies
    9
    Views
    7,985

    Re: Simple OBJ loader for freeglut?

    Ok I fixed my own problems and I want to share the solution with others as I am sure there have been lots of people with this same problem.

    This provides not only a sample file but the headers...
  22. Replies
    9
    Views
    7,985

    Re: Simple OBJ loader for freeglut?

    hm...

    Well in (glm.c) both glLockArraysEXT() and glUnlockArraysEXT() are linked to this file:

    GL/glext.h

    And the file is in the correct location.

    In (glm.h) SurfacesTextureLoad(),...
  23. Replies
    9
    Views
    7,985

    Re: Simple OBJ loader for freeglut?

    I tried compiling and linking glm.c using:




    gcc -c -o glm.o glm.c -D FREEGLUT_STATIC -I"C:\Program Files\Common Files\MinGW\freeglut\include"
    pause
    gcc -o glm.exe glm.o -L"C:\Program...
  24. Replies
    9
    Views
    7,985

    Re: Simple OBJ loader for freeglut?

    GLM was designed for linux: http://devernay.free.fr/hacks/glm/

    It has all the functionality that I need and its very simple to use.

    I tried to just link to the header files such as:

    eden.h...
  25. Replies
    9
    Views
    7,985

    [RESOLVED] Simple OBJ loader for freeglut?

    I have looked EVERYWHERE and couldn't find a single Simple OBJ loader for freeglut. I found a few good ones for Linux but I am using Microsoft Windows. I tried GLM but I couldn't get it to link in...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured