Added NzRenderer::[Get/Set]LineWidth
Former-commit-id: 827f762294bb67debb2a7faed07b595df2b9d20d
This commit is contained in:
@@ -196,6 +196,14 @@ void NzRenderer::Enable(nzRendererParameter parameter, bool enable)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
float NzRenderer::GetLineWidth()
|
||||
{
|
||||
float lineWidth;
|
||||
glGetFloatv(GL_LINE_WIDTH, &lineWidth);
|
||||
|
||||
return lineWidth;
|
||||
}
|
||||
/*
|
||||
NzMatrix4f NzRenderer::GetMatrix(nzMatrixCombination combination)
|
||||
{
|
||||
@@ -505,6 +513,19 @@ bool NzRenderer::SetIndexBuffer(const NzIndexBuffer* indexBuffer)
|
||||
return true;
|
||||
}
|
||||
|
||||
void NzRenderer::SetLineWidth(float width)
|
||||
{
|
||||
#if NAZARA_RENDERER_SAFE
|
||||
if (width <= 0.f)
|
||||
{
|
||||
NazaraError("Width must be over zero");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
glLineWidth(width);
|
||||
}
|
||||
|
||||
void NzRenderer::SetMatrix(nzMatrixType type, const NzMatrix4f& matrix)
|
||||
{
|
||||
s_matrix[type] = matrix;
|
||||
|
||||
Reference in New Issue
Block a user