Search:

Type: Posts; User: JohnLeeroy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Global/Static function/variable slower to access?

    Hey guys,

    So I learned about the cpu and some real low level stuff recently and I have to ask, are global/static variables or functions slower to access/call?

    The reasoning may be because that...
  2. Replies
    4
    Views
    3,110

    Now that i think about it, static doesnt...

    Now that i think about it, static doesnt necessarily break encapsulation. It can be a private static variable/function and other objects cant access it.
    I have never worked with a const static...
  3. Replies
    4
    Views
    3,110

    Encapsulation in C++

    So talking about the object-oriented paradigm of encapsulation, what are ways to implement it and ways to break it.

    From my experiences, structures and classes with private/protected members, and...
  4. Replies
    1
    Views
    787

    Static Functions

    Hello,

    I plan on making a D3DXVECTOR3 wrapper for my project and I was wondering if it was optimal to make math functions be static? Or wrap up the functionality in a class.



    I would invoke...
  5. Making a window similar to win32 Console

    Hello,

    I am working on a win32 project which is already using a console window to show debug information. I would like to have some sort of window that allows me to give input and be able to...
  6. Replies
    3
    Views
    1,311

    That sounds like it will work but also fairly...

    That sounds like it will work but also fairly expensive. I've consulted with my teacher and he told me to send collision information to the vertex shader and alpha out part of the wall in the...
  7. Replies
    3
    Views
    1,311

    Camera (Wall Alpha-ing)

    Hello everyone,

    I've built a third person camera in C++ using DirectX that attaches itself to game objects such as the player. My walls are planes and I am utilizing line segment to plane...
  8. Replies
    4
    Views
    3,915

    While we're on the subject, what if you have code...

    While we're on the subject, what if you have code referencing libraries from DirectX or XNA. Do those libraries get compiled into the .exe?
  9. Replies
    6
    Views
    2,120

    Thanks Virtual Ace. Those steps actually make...

    Thanks Virtual Ace.

    Those steps actually make sense. So dot-product actually returns the degree difference between two vectors? Anyways, would I need to orthonomalize my matrix after I rotate on...
  10. Replies
    8
    Views
    3,357

    XNA and Visual Studio Express will require you to...

    XNA and Visual Studio Express will require you to register your email and make an account with Microsoft but it is still free. Most compilers and IDEs that you develop on Windows will only run on...
  11. Replies
    8
    Views
    3,357

    You probably wouldnt know how to use the...

    You probably wouldnt know how to use the functionalities of an engine if you don't have a good knowledge of code. I'd recommend building your own. This means you have to handle rendering,...
  12. Replies
    6
    Views
    2,120

    3D Math (Vector & Matrices)

    Hello everyone,

    I have question about 3D math. I have a vector representing the direction i want my matrix to face. How can I change the forward(z axis) vector of the matrix to the direction...
  13. Replies
    10
    Views
    5,383

    You can use tools such as Paint.net or GIMP. ...

    You can use tools such as Paint.net or GIMP.

    If you're looking for sprites/sprite sheets, here's a website for you below.
    [link]
  14. Slightly off-topic but can you describe the...

    Slightly off-topic but can you describe the effect of the view matrix in the rendering pipeline. I have several questions about the view matrix.

    Is the translation vector of the view matrix the...
  15. Replies
    25
    Views
    2,716

    From playing GameDev story, a game dev simulation...

    From playing GameDev story, a game dev simulation game, you would have to purchase a license from Microsoft or the console's proprietary owners before you can develop for the consoles. Anyways,...
  16. Replies
    15
    Views
    2,615

    Looks very nice. Reminds me of the "bullet hell"...

    Looks very nice. Reminds me of the "bullet hell" genre of side scrolling shooters. Which rendering API are you using?
  17. Replies
    25
    Views
    2,716

    As far as I'm aware, the standard version doesn't...

    As far as I'm aware, the standard version doesn't cost any money. The quote above is from wikipedia.

    I've used it during the Global Gam Jam two weeks ago. Produced this game in 48 hours with a...
  18. Replies
    7
    Views
    3,134

    Okay, lets use the solar system as an example. ...

    Okay, lets use the solar system as an example.

    You have the sun which for our example rotates on its local Y axis.

    glPush
    rotate on Y
    Draw Sun
    glPop

    Now we have planets that revolve...
  19. Replies
    25
    Views
    2,716

    This is slightly off topic but why don't you...

    This is slightly off topic but why don't you consider middleware such as Unity. It makes developing game a lot shorter and possibly easier. After you finished the game, you can port it to the PS3,...
  20. Replies
    8
    Views
    1,717

    My understanding of APIs are that they let the...

    My understanding of APIs are that they let the user interact with the hardware. I've worked with DirectX D3D and OpenGL for drawing.

    Direct3D and OpenGL allows the user to use their libraries and...
  21. Replies
    26
    Views
    4,080

    This is only an idea but you can try to make a...

    This is only an idea but you can try to make a lightmap composed of alpha and white values with the size of your screen resolution and interpolate between the pixels on the screen to your lightmap.
    ...
  22. Replies
    20
    Views
    2,644

    Weird. So what if I call new twice on the same...

    Weird.

    So what if I call new twice on the same reference... see the following code


    TextBox variable = new TextBox();
    variable = new TextBox();
  23. Replies
    20
    Views
    2,644

    I have a silly question (it sounds silly enough...

    I have a silly question (it sounds silly enough at least), how do you de-allocate heap memory?
    I've looked online which has directed me to Dispose or GC.Collect() but I just want to clean up...
  24. Replies
    5
    Views
    4,899

    Im familiar with the "new" call for C++ so seeing...

    Im familiar with the "new" call for C++ so seeing the C version is new for me.

    Is there any difference between malloc and new?

    edit: oops! didnt notice the C board
  25. Replies
    20
    Views
    2,644

    Debugging for an hour taught me that events are...

    Debugging for an hour taught me that events are very sensitive. Not spending enough time to designing and making my code modular has caused initialization code to be recalled causing weird problems....
Results 1 to 25 of 31
Page 1 of 2 1 2