[DEV] change some log level

This commit is contained in:
Edouard DUPIN 2016-07-24 14:26:16 +02:00
parent fa32e8c008
commit 7686e83ef7
2 changed files with 8 additions and 8 deletions

View File

@ -44,7 +44,7 @@ std::ostream& egami::operator <<(std::ostream& _os, const enum egami::colorType
egami::Image::Image() :
m_data(nullptr) {
EGAMI_WARNING("Chek this code, the caller can not use it corectly ... (NEW API)");
}
egami::Image::~Image() {
@ -107,7 +107,7 @@ void* egami::Image::getTextureDataPointer() {
void egami::Image::resize(const ivec2& _size, const ivec2& _startPos) {
if (m_data == nullptr) {
EGAMI_WARNING("No internal data for image (nullptr)");
EGAMI_CRITICAL("No internal data for image (nullptr)");
return;
}
m_data->resize(_size, _startPos);

View File

@ -193,9 +193,9 @@ egami::Image egami::loadPNG(const std::string& _inputFile) {
for (png_uint_32 row = 0; row < height; row++) {
row_pointers[row] = (png_bytep)png_malloc(png_ptr, png_get_rowbytes(png_ptr, info_ptr));
}
EGAMI_ERROR("Load image: " << _inputFile);
EGAMI_DEBUG("Load image: " << _inputFile);
png_read_image(png_ptr, row_pointers);
EGAMI_ERROR("Load image: " << _inputFile << " DONE");
EGAMI_DEBUG("Load image: " << _inputFile << " DONE");
// Read rest of file, and get additional chunks in info_ptr - REQUIRED
png_read_end(png_ptr, info_ptr);
@ -204,7 +204,7 @@ egami::Image egami::loadPNG(const std::string& _inputFile) {
etk::Color<> tmpColor(0,0,0,0);
switch (colorType) {
case PNG_COLOR_TYPE_RGBA:
EGAMI_ERROR("plop: PNG_COLOR_TYPE_RGBA");
EGAMI_DEBUG("colorset: PNG_COLOR_TYPE_RGBA");
// Conversion to OpenGL texture
for (png_uint_32 yyy = 0; yyy < height; ++yyy) {
png_byte* row = row_pointers[yyy];
@ -216,7 +216,7 @@ egami::Image egami::loadPNG(const std::string& _inputFile) {
}
break;
case PNG_COLOR_TYPE_RGB:
EGAMI_ERROR("plop: PNG_COLOR_TYPE_RGB");
EGAMI_DEBUG("colorset: PNG_COLOR_TYPE_RGB");
// Conversion to OpenGL texture
for (png_uint_32 yyy = 0; yyy < height; ++yyy) {
png_byte* row = row_pointers[yyy];
@ -228,7 +228,7 @@ egami::Image egami::loadPNG(const std::string& _inputFile) {
}
break;
case PNG_COLOR_TYPE_GRAY:
EGAMI_ERROR("plop: PNG_COLOR_TYPE_GRAY");
EGAMI_DEBUG("colorset: PNG_COLOR_TYPE_GRAY");
// Conversion to OpenGL texture
for (png_uint_32 yyy = 0; yyy < height; ++yyy) {
png_byte* row = row_pointers[yyy];
@ -240,7 +240,7 @@ egami::Image egami::loadPNG(const std::string& _inputFile) {
}
break;
case PNG_COLOR_TYPE_GRAY_ALPHA:
EGAMI_ERROR("plop: PNG_COLOR_TYPE_GRAY_ALPHA");
EGAMI_DEBUG("colorset: PNG_COLOR_TYPE_GRAY_ALPHA");
// Conversion to OpenGL texture
for (png_uint_32 yyy = 0; yyy < height; ++yyy) {
png_byte* row = row_pointers[yyy];