Skip to content

Conversation

@9prady9
Copy link
Member

@9prady9 9prady9 commented Dec 19, 2016

No description provided.

static const float XMIN = -32.0f;
static const float XMAX = 32.f;
static const float YMIN = -32.0f;
static const float YMAX = 32.f;
Copy link
Member

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));
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@9prady9 9prady9 requested a review from shehzan10 December 19, 2016 18:30
@shehzan10 shehzan10 changed the title Surface fixes Surface fixes and Increment version to 0.9.2 Dec 19, 2016
@shehzan10 shehzan10 merged commit 175a6b2 into arrayfire:devel Dec 19, 2016
@9prady9 9prady9 deleted the surface_fixes branch December 19, 2016 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants