Minor stuff
This commit is contained in:
@@ -165,7 +165,7 @@ namespace Nz
|
||||
{
|
||||
std::size_t attachmentIndex = colorIndexes[i];
|
||||
|
||||
Nz::Color color = command.clearValues[attachmentIndex].color;
|
||||
Color color = command.clearValues[attachmentIndex].color;
|
||||
std::array<GLfloat, 4> clearColor = { color.r / 255.f, color.g / 255.f, color.b / 255.f, color.a / 255.f };
|
||||
|
||||
const auto& attachmentInfo = command.renderpass->GetAttachment(attachmentIndex);
|
||||
@@ -230,7 +230,7 @@ namespace Nz
|
||||
{
|
||||
context->ResetColorWriteMasks();
|
||||
|
||||
Nz::Color color = command.clearValues[colorAttachmentIndex].color;
|
||||
Color color = command.clearValues[colorAttachmentIndex].color;
|
||||
context->glClearColor(color.r / 255.f, color.g / 255.f, color.b / 255.f, color.a / 255.f);
|
||||
|
||||
clearFields |= GL_COLOR_BUFFER_BIT;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
void OpenGLCommandBufferBuilder::BeginDebugRegion(const std::string_view& regionName, const Nz::Color& color)
|
||||
void OpenGLCommandBufferBuilder::BeginDebugRegion(const std::string_view& regionName, const Color& color)
|
||||
{
|
||||
m_commandBuffer.BeginDebugRegion(regionName, color);
|
||||
}
|
||||
|
||||
@@ -1468,7 +1468,7 @@ namespace Nz::ShaderAst
|
||||
throw AstError{ "pow only works with primitive and vector types" };
|
||||
|
||||
if ((IsPrimitiveType(type) && std::get<PrimitiveType>(type) != PrimitiveType::Float32) ||
|
||||
(IsVectorType(type) && std::get<VectorType>(type).type != PrimitiveType::Float32))
|
||||
(IsVectorType(type) && std::get<VectorType>(type).type != PrimitiveType::Float32))
|
||||
throw AstError{ "pow only works with floating-point primitive or vectors" };
|
||||
|
||||
node.cachedExpressionType = type;
|
||||
|
||||
@@ -740,7 +740,7 @@ namespace Nz::ShaderLang
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
throw UnexpectedToken{};
|
||||
}
|
||||
|
||||
return statement;
|
||||
|
||||
@@ -326,7 +326,7 @@ namespace Nz
|
||||
if (auto colorPtr = vertexMapper.GetComponentPtr<Color>(VertexComponent::Color))
|
||||
{
|
||||
for (unsigned int i = 0; i < vertexCount; ++i)
|
||||
colorPtr[i] = Nz::Color::White;
|
||||
colorPtr[i] = Color::White;
|
||||
}
|
||||
|
||||
vertexMapper.Unmap();
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace Nz
|
||||
m_lines.emplace_back(Line{Rectf::Zero(), 0});
|
||||
}
|
||||
|
||||
bool SimpleTextDrawer::GenerateGlyph(Glyph& glyph, char32_t character, float outlineThickness, bool lineWrap, Nz::Color color, int renderOrder, int* advance) const
|
||||
bool SimpleTextDrawer::GenerateGlyph(Glyph& glyph, char32_t character, float outlineThickness, bool lineWrap, Color color, int renderOrder, int* advance) const
|
||||
{
|
||||
const Font::Glyph& fontGlyph = m_font->GetGlyph(m_characterSize, m_style, outlineThickness, character);
|
||||
if (fontGlyph.valid && fontGlyph.fauxOutlineThickness <= 0.f)
|
||||
|
||||
Reference in New Issue
Block a user