-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
Replaced D3DPT_TRIANGLEFAN with D3DPT_TRIANGLELIST in Portal class #251
Conversation
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.
Thank you for the effort! Could you fix the codestyle? I described what needs to be corrected.
} | ||
else | ||
{ | ||
} else { |
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.
Should be
}
else
{
But we can just remove braces here.
RCache.set_Shader(RImplementation.m_WireShader); | ||
RCache.dbg_Draw(D3DPT_LINESTRIP, &*(V.begin() + 1), V.size() - 2); | ||
RCache.set_Shader (RImplementation.m_WireShader); | ||
RCache.dbg_Draw (D3DPT_LINESTRIP,&*V.begin(),V.size()-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.
RCache.set_Shader(RImplementation.m_WireShader);
RCache.dbg_Draw(D3DPT_LINESTRIP, &*V.begin(), V.size() - 1);
} | ||
else | ||
{ | ||
} else { |
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.
Should be
}
else
{
But we can just remove braces here.
V.back().set(poly[0], 0x800000FF); | ||
C.div((float)poly.size()); | ||
V[0].set(C, 0x800000FF); | ||
xr_vector<FVF::L> V; V.resize(poly.size()*3); |
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.
Please, move resize() to the next string:
xr_vector<FVF::L> V;
V.resize(poly.size()*3);
No description provided.