Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 26 Mar 2010
Offline Last Active Mar 24 2016 03:02 AM

Posts I've Made

In Topic: SDL 2.0 and String Constructor Errors

20 April 2014 - 03:04 AM

For the first question we're gonna need to see how you are creating a variable and using it... but in the second question I'm pretty sure it's crashing because (depending on how you are creating a variable of that class) SDL_CreateWindow will crash because SDL_Init hasn't been called. To be sure please show us how you are using the class and post the actual error messages please smile.png

In Topic: 640x512, is it safe?

24 January 2014 - 07:16 AM

there is a warning about potential damege of monitor and violation of guarantee, alsomention that this settings can cause some signals raise above the range values expected by monitors - 


I'm not sure I've ever heard of damage being caused from changing a resolution..? Where did you see that information?

In Topic: Basic Rendering

20 January 2014 - 12:39 PM

As said above you have:


  1. bd.ByteWidth = sizeof(VERTEX) * 3;


Which sets the size of the whole vertex buffer, with this you are only able to store a maximum of 3 vertices. The error you are getting now is literally as it says, the buffer is too small to accommodate 6 vertices.

In Topic: Basic Rendering

20 January 2014 - 12:39 AM

Looks like the formatting got screwed up on your code but from what I can see your doing:

m_pImmediateContext->Draw(3, 0)

Which only draws the first 3 vertices. It should be:

m_pImmediateContext->Draw(6, 0)

In Topic: Events with lambdas

04 January 2014 - 03:43 PM

Does it work that way? Each component that registers passes in it's own function to be called.. Can it capture variables from the class that triggers the event?

For example


"RenderManager" registers itself to listen for event "WindowResize" and passes in function to be called when triggered.


"WindowManager" triggers "WindowResize" event with parameters w = 800, h = 600. 


Can the function that "RenderManager" passes in capture the variables from "WindowManager" ?