Skip to content
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

Merged
merged 1 commit into from
Oct 10, 2018
Merged

Replaced D3DPT_TRIANGLEFAN with D3DPT_TRIANGLELIST in Portal class #251

merged 1 commit into from
Oct 10, 2018

Conversation

SkyLoaderr
Copy link
Contributor

No description provided.

Copy link
Member

@Xottab-DUTY Xottab-DUTY left a 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 {
Copy link
Member

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

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 {
Copy link
Member

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

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);

@Xottab-DUTY Xottab-DUTY merged commit 523f754 into OpenXRay:xd_dev Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants