-
Notifications
You must be signed in to change notification settings - Fork 47
Surface fixes and Increment version to 0.9.2 #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
examples/cpu/surface.cpp
Outdated
| static const float XMIN = -32.0f; | ||
| static const float XMAX = 32.f; | ||
| static const float YMIN = -32.0f; | ||
| static const float YMAX = 32.f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static const float XMIN = -32.0f;
static const float XMAX = 32.0f;
static const float YMIN = -32.0f;
static const float YMAX = 32.0f;
Consistency of space and 0 after decimal point. I added 0s cuz 2 of them had it.
|
|
||
| if (r < (rows-2)) { | ||
| // repeat last vertex for degenerate triangle | ||
| indices.push_back(((r + 1) * rows) + (cols - 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
push_back it's great. Or at least without reserve it isnt. Can we reserve/resize before push_back?
@umar456 thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the size is known ahead. we can do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't do it because this function won't be called from render loop.
No description provided.