mirror of
https://github.com/NoelFB/blah.git
synced 2025-07-18 19:41:52 +08:00
replaced log.h with common.h, added easier shorthand for int types
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#include <blah/graphics/material.h>
|
||||
#include <blah/core/log.h>
|
||||
#include <blah/core/common.h>
|
||||
#include <cstring>
|
||||
|
||||
using namespace Blah;
|
||||
@ -277,7 +277,7 @@ TextureSampler Material::get_sampler(int slot, int index) const
|
||||
return TextureSampler();
|
||||
}
|
||||
|
||||
void Material::set_value(const char* name, const float* value, int64_t length)
|
||||
void Material::set_value(const char* name, const float* value, i64 length)
|
||||
{
|
||||
BLAH_ASSERT(m_shader, "Material Shader is invalid");
|
||||
BLAH_ASSERT(length >= 0, "Length must be >= 0");
|
||||
@ -311,7 +311,7 @@ void Material::set_value(const char* name, const float* value, int64_t length)
|
||||
Log::warn("No Uniform '%s' exists", name);
|
||||
}
|
||||
|
||||
const float* Material::get_value(const char* name, int64_t* length) const
|
||||
const float* Material::get_value(const char* name, i64* length) const
|
||||
{
|
||||
BLAH_ASSERT(m_shader, "Material Shader is invalid");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <blah/graphics/renderpass.h>
|
||||
#include <blah/core/log.h>
|
||||
#include <blah/core/common.h>
|
||||
#include "../internal/graphics_backend.h"
|
||||
|
||||
using namespace Blah;
|
||||
@ -38,7 +38,7 @@ void RenderPass::perform()
|
||||
}
|
||||
|
||||
// Validate Index Count
|
||||
int64_t index_count = pass.mesh->index_count();
|
||||
i64 index_count = pass.mesh->index_count();
|
||||
if (pass.index_start + pass.index_count > index_count)
|
||||
{
|
||||
Log::warn(
|
||||
@ -54,7 +54,7 @@ void RenderPass::perform()
|
||||
}
|
||||
|
||||
// Validate Instance Count
|
||||
int64_t instance_count = pass.mesh->instance_count();
|
||||
i64 instance_count = pass.mesh->instance_count();
|
||||
if (pass.instance_count > instance_count)
|
||||
{
|
||||
Log::warn(
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <blah/graphics/texture.h>
|
||||
#include <blah/images/image.h>
|
||||
#include <blah/streams/stream.h>
|
||||
#include <blah/core/log.h>
|
||||
#include <blah/core/common.h>
|
||||
#include "../internal/graphics_backend.h"
|
||||
|
||||
using namespace Blah;
|
||||
|
Reference in New Issue
Block a user