Some cleanup
This commit is contained in:
@@ -505,7 +505,7 @@ namespace fgl::engine
|
||||
|
||||
model->syncBuffers( command_buffer );
|
||||
|
||||
constexpr int val { 1 };
|
||||
constexpr int val { 16 };
|
||||
|
||||
constexpr float x_offset { -( static_cast< float >( val ) * 30.0f ) / 2.0f };
|
||||
constexpr float y_offset { -( static_cast< float >( val ) * 20.0f ) / 2.0f };
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace fgl::engine
|
||||
( end_idx - start_idx ) != 0
|
||||
&& "BufferSuballocationVector::flushRange end_idx must be at least +1 from start_idx" );
|
||||
|
||||
const auto count { end_idx - start_idx };
|
||||
[[maybe_unused]] const auto count { end_idx - start_idx };
|
||||
assert( count > 0 && "Count must be larger then 0" );
|
||||
assert( count <= m_count );
|
||||
|
||||
|
||||
@@ -352,10 +352,6 @@ namespace fgl::engine
|
||||
testPlane( this->top );
|
||||
testPlane( this->bottom );
|
||||
|
||||
const auto distance { signedDistance( line.getDirection(), coordinate, line.getPosition() ) };
|
||||
|
||||
assert( distance > 0.0f );
|
||||
|
||||
return coordinate;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ namespace fgl::engine
|
||||
return m_top_right_forward == other.m_top_right_forward && m_bottom_left_back == other.m_bottom_left_back;
|
||||
}
|
||||
|
||||
virtual Coordinate< CType > getPosition() const
|
||||
virtual Coordinate< CType > getPosition() const final
|
||||
{
|
||||
return fgl::midpoint( m_top_right_forward, m_bottom_left_back );
|
||||
}
|
||||
|
||||
virtual inline Coordinate< CType > topLeftForward() const { return m_top_right_forward; }
|
||||
virtual inline Coordinate< CType > topLeftForward() const final { return m_top_right_forward; }
|
||||
|
||||
virtual inline Coordinate< CType > bottomLeftBack() const { return m_bottom_left_back; }
|
||||
virtual inline Coordinate< CType > bottomLeftBack() const final { return m_bottom_left_back; }
|
||||
|
||||
virtual Scale scale() const;
|
||||
|
||||
|
||||
@@ -213,11 +213,6 @@ namespace fgl::engine
|
||||
|
||||
const auto& model_matricies_suballoc { model_matrix_info_buffer };
|
||||
|
||||
for ( const auto& model_matrix : model_matrices )
|
||||
{
|
||||
assert( model_matrix.texture_idx <= 100 );
|
||||
}
|
||||
|
||||
assert( model_matrix_info_buffer->size() == model_matrices.size() );
|
||||
|
||||
// Setup draw parameter buffer
|
||||
|
||||
Reference in New Issue
Block a user