Fixed the colors
This commit is contained in:
		@@ -12,8 +12,6 @@ if(NOT DEFINED DAWN_BUILD_TARGET)
 | 
			
		||||
  endif()
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
set(DAWN_BUILD_TARGET "target-helloworld-vita")
 | 
			
		||||
 | 
			
		||||
# Now validate we have a build target for real
 | 
			
		||||
if(NOT DEFINED DAWN_BUILD_TARGET)
 | 
			
		||||
  message(FATAL_ERROR "You need to define a DAWN_BUILD_TARGET")
 | 
			
		||||
 
 | 
			
		||||
@@ -15,20 +15,20 @@ namespace Dawn {
 | 
			
		||||
        (float_t)r / 255.0f,
 | 
			
		||||
        (float_t)g / 255.0f,
 | 
			
		||||
        (float_t)b / 255.0f,
 | 
			
		||||
        (float_t)a / 255.0f
 | 
			
		||||
        (float_t)a / 100.0f
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  #define COLOR_WHITE { 255, 255, 255, 255 }
 | 
			
		||||
  #define COLOR_RED { 255, 0, 0, 255 }
 | 
			
		||||
  #define COLOR_GREEN { 0, 255, 0, 255 }
 | 
			
		||||
  #define COLOR_BLUE { 0, 0, 255, 255 }
 | 
			
		||||
  #define COLOR_BLACK { 0, 0, 0, 255 }
 | 
			
		||||
  #define COLOR_MAGENTA { 255, 0, 255, 255 }
 | 
			
		||||
  #define COLOR_DARK_GREY { 50, 50, 50, 255 }
 | 
			
		||||
  #define COLOR_LIGHT_GREY { 204, 204, 204, 255 }
 | 
			
		||||
  #define COLOR_CORNFLOWER_BLUE { 255, 255, 237, 255 }
 | 
			
		||||
  #define COLOR_WHITE { 255, 255, 255, 100 }
 | 
			
		||||
  #define COLOR_RED { 255, 0, 0, 100 }
 | 
			
		||||
  #define COLOR_GREEN { 0, 255, 0, 100 }
 | 
			
		||||
  #define COLOR_BLUE { 0, 0, 255, 100 }
 | 
			
		||||
  #define COLOR_BLACK { 0, 0, 0, 100 }
 | 
			
		||||
  #define COLOR_MAGENTA { 255, 0, 255, 100 }
 | 
			
		||||
  #define COLOR_DARK_GREY { 50, 50, 50, 100 }
 | 
			
		||||
  #define COLOR_LIGHT_GREY { 204, 204, 204, 100 }
 | 
			
		||||
  #define COLOR_CORNFLOWER_BLUE { 100, 149, 237, 100 }
 | 
			
		||||
  #define COLOR_WHITE_TRANSPARENT { 255, 255, 255, 0 }
 | 
			
		||||
  #define COLOR_BLACK_TRANSPARENT { 0, 0, 0, 0 }
 | 
			
		||||
  #define COLOR_TRANSPARENT COLOR_BLACK_TRANSPARENT
 | 
			
		||||
 
 | 
			
		||||
@@ -34,12 +34,7 @@ void BackBufferRenderTarget::setClearColor(struct Color color) {
 | 
			
		||||
 | 
			
		||||
void BackBufferRenderTarget::clear(flag8_t clearFlags) {
 | 
			
		||||
  auto clear = this->clearColor.precision();
 | 
			
		||||
  glClearColor(
 | 
			
		||||
    clear.r,
 | 
			
		||||
    clear.g,
 | 
			
		||||
    clear.b,
 | 
			
		||||
    clear.a
 | 
			
		||||
  );
 | 
			
		||||
  glClearColor(clear.r, clear.g, clear.b, clear.a);
 | 
			
		||||
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user