From 7686e83ef7884b513c2c07d11ce830dfae66ab02 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 24 Jul 2016 14:26:16 +0200 Subject: [PATCH] [DEV] change some log level --- egami/Image.cpp | 4 ++-- egami/wrapperPNG.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/egami/Image.cpp b/egami/Image.cpp index ec66242..c3f363b 100644 --- a/egami/Image.cpp +++ b/egami/Image.cpp @@ -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); diff --git a/egami/wrapperPNG.cpp b/egami/wrapperPNG.cpp index 87f0b65..1fbad36 100644 --- a/egami/wrapperPNG.cpp +++ b/egami/wrapperPNG.cpp @@ -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];