| /NW4C-1.3.3/sources/libraries/lyt/ |
| D | lyt_DrawerGraphics.cpp | 125 nw::ut::Color8 white = pMaterial->GetColor( INTERPOLATECOLOR_WHITE ); in SetUpTexEnv() 150 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = white; in SetUpTexEnv() 156 else if ( *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) != white ) in SetUpTexEnv() 160 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = white; in SetUpTexEnv() 172 nw::ut::Color8 white = pMaterial->GetColor( INTERPOLATECOLOR_WHITE ); in SetUpTexEnv() 173 nw::ut::Color8 black = pMaterial->GetColor( INTERPOLATECOLOR_BLACK ); in SetUpTexEnv() 233 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = black; in SetUpTexEnv() 234 *reinterpret_cast< nw::ut::Color8* >( &command[ 10 ] ) = white; in SetUpTexEnv() 240 else if ( *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) != black || in SetUpTexEnv() 241 *reinterpret_cast< nw::ut::Color8* >( &command[ 10 ] ) != white ) in SetUpTexEnv() [all …]
|
| D | lyt_TextBox.cpp | 222 const ut::Color8 233 ut::Color8 value in SetVtxColor() 246 …interpret_cast<const u8*>(&m_TextColors[idx / (2 * sizeof(ut::Color8))])[idx % sizeof(ut::Color8)]; in GetVtxColorElement() 255 … reinterpret_cast<u8*>(&m_TextColors[idx / (2 * sizeof(ut::Color8))])[idx % sizeof(ut::Color8)]; in SetVtxColorElement() 323 ut::Color8 minCol = m_pMaterial->GetColor(INTERPOLATECOLOR_BLACK); in DrawSelf() 324 ut::Color8 maxCol = m_pMaterial->GetColor(INTERPOLATECOLOR_WHITE); in DrawSelf() 697 ut::Color8 topCol = m_TextColors[TEXTCOLOR_TOP]; in SetupTextWriter() 698 ut::Color8 btmCol = m_TextColors[TEXTCOLOR_BOTTOM]; in SetupTextWriter()
|
| D | lyt_Common.cpp | 226 const ut::Color8 228 const ut::Color8 col, in MultipleAlpha() 232 ut::Color8 ret = col; in MultipleAlpha() 233 if (alpha != ut::Color8::ALPHA_MAX) in MultipleAlpha() 235 ret.a = u8(col.a * alpha / ut::Color8::ALPHA_MAX); in MultipleAlpha() 255 const ut::Color8* vtxColors in DrawQuad() 336 ut::Color8 color) in DrawLine() 617 GL::SetTevConstRgba(GraphicsResource& graphicsResource, int index, nw::ut::Color8 value) in SetTevConstRgba() 632 …stRgba(GraphicsResource& graphicsResource, int index, nw::ut::Color8 value0, nw::ut::Color8 value1) in SetTevConstRgba() 647 GL::SetTevBufferColor(nw::lyt::GraphicsResource &graphicsResource, ut::Color8 value) in SetTevBufferColor()
|
| D | lyt_Bounding.cpp | 62 internal::DrawLine(drawInfo, GetVtxPos(), GetSize(), ut::Color8::GREEN); in DrawSelf()
|
| D | lyt_Pane.cpp | 309 m_Alpha = ut::Color8::ALPHA_MAX; in Pane() 439 const ut::Color8 444 return ut::Color8::WHITE; in GetVtxColor() 450 ut::Color8 value in SetVtxColor() 493 return ut::Color8::ELEMENT_MAX; in GetVtxColorElement() 661 if (IsInfluencedAlpha() && m_Alpha != ut::Color8::ALPHA_MAX) in CalculateMtx() 666 const f32 invAlpha = 1.0f / ut::Color8::ALPHA_MAX; in CalculateMtx() 724 internal::DrawLine(drawInfo, GetVtxPos(), m_Size, ut::Color8::GREEN); in DrawSelf()
|
| D | lyt_Picture.cpp | 229 const ut::Color8 240 ut::Color8 value in SetVtxColor()
|
| /NW4C-1.3.3/demos/Nw4cDemo/sources/ |
| D | SmButton.cpp | 35 m_OnColor( nw::ut::Color8::BLACK ), in SmButton() 36 m_OffColor( nw::ut::Color8::RED ) in SmButton() 44 m_Button->SetVertex( 0, x, y, nw::ut::Color8::BLACK ); in SmButton() 45 m_Button->SetVertex( 1, x, y + h, nw::ut::Color8::BLACK ); in SmButton() 46 m_Button->SetVertex( 2, x + w, y, nw::ut::Color8::BLACK ); in SmButton() 47 m_Button->SetVertex( 3, x + w, y + h, nw::ut::Color8::BLACK ); in SmButton() 56 …->SetVertex( 0, x - PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton() 57 …->SetVertex( 1, x - PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton() 58 …->SetVertex( 2, x + w + PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton() 59 …->SetVertex( 3, x + w + PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton() [all …]
|
| D | SmSliderBar.cpp | 54 m_Bar->SetVertex( 0, x - SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 55 m_Bar->SetVertex( 1, x - SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 56 m_Bar->SetVertex( 2, x + SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 57 m_Bar->SetVertex( 3, x + SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 65 …_Slider->SetVertex( 0, x - SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar() 66 …_Slider->SetVertex( 1, x - SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar() 67 …_Slider->SetVertex( 2, x + SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar() 68 …_Slider->SetVertex( 3, x + SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar()
|
| D | SmTouchPanelCamera.cpp | 137 … m_Collision.GetY(), nw::ut::Color8::YELLOW ); in Render() 138 … m_Collision.GetY() + m_Collision.GetHeight(), nw::ut::Color8::YELLOW ); in Render() 139 …_Collision.GetWidth(), m_Collision.GetY(), nw::ut::Color8::YELLOW ); in Render() 140 …_Collision.GetWidth(), m_Collision.GetY() + m_Collision.GetHeight(), nw::ut::Color8::YELLOW ); in Render() 148 … prim.SetVertex( m_TouchPanelPosX, m_TouchPanelPosY, nw::ut::Color8::RED ); in Render() 149 … prim.SetVertex( m_TouchPanelPosX, m_TouchPanelPosY + 4.f, nw::ut::Color8::RED ); in Render() 150 … prim.SetVertex( m_TouchPanelPosX + 4.f, m_TouchPanelPosY, nw::ut::Color8::RED ); in Render() 151 … prim.SetVertex( m_TouchPanelPosX + 4.f, m_TouchPanelPosY + 4.f, nw::ut::Color8::RED ); in Render()
|
| D | main.cpp | 445 _SET_PERF_CPU_BEGIN( "GFX :Update Scene ", nw::ut::Color8::RED ); in CreateGfxCache() 506 _SET_PERF_CPU_BEGIN( "GFX :Create Command Cache ", nw::ut::Color8::RED ); in CreateGfxCache() 673 _SET_PERF_GPU_BEGIN( "CPU WAIT ", nw::ut::Color8::RED ); in DemoScene() 697 _SET_PERF_GPU_BEGIN( "GPU_ALL_COST ", nw::ut::Color8::BLUE ); in DemoScene() 701 _SET_PERF_CPU_BEGIN( "GFX :CommandCache Copy ", nw::ut::Color8::RED ); in DemoScene() 732 _SET_PERF_CPU_BEGIN( "SYS :RenderTarget Change ", nw::ut::Color8::BLUE ); in DemoScene() 748 _SET_PERF_CPU_BEGIN( "LYT :Calc ", nw::ut::Color8::GREEN ); in DemoScene() 759 _SET_PERF_CPU_BEGIN( "LYT :CommandCache Copy ", nw::ut::Color8::GREEN ); in DemoScene() 775 _SET_PERF_CPU_BEGIN( "PERF:Performance Meter ", nw::ut::Color8::YELLOW ); in DemoScene() 790 _SET_PERF_CPU_BEGIN( "SYS :Transfer BUffer ", nw::ut::Color8::BLUE ); in DemoScene()
|
| D | SmPrimitive.cpp | 342 void Sm2DPrimPC::SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color ) in SetVertex() 354 void Sm2DPrimPC::SetVertexColor( nw::ut::Color8 color ) in SetVertexColor() 403 void Sm2DDynamicPrimPC::SetVertex( f32 x, f32 y, nw::ut::Color8 color ) in SetVertex()
|
| /NW4C-1.3.3/include/nw/lyt/ |
| D | lyt_Common.h | 161 const ut::Color8 MultipleAlpha( 162 const ut::Color8 col, 171 const ut::Color8* vtxColors = NULL); 182 ut::Color8 color); 189 const ut::Color8 cols[], in GetVtxColorElement() 195 return reinterpret_cast<const u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)]; in GetVtxColorElement() 201 ut::Color8 cols[], in SetVtxColorElement() 208 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement() 255 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value); 256 …tTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value0, ut::Color8 value1); [all …]
|
| D | lyt_TextBox.h | 299 const ut::Color8 GetTextColor(u32 type) const in GetTextColor() 317 void SetTextColor(u32 type, ut::Color8 value) in SetTextColor() 337 ut::Color8 top, in SetTextColor() 338 ut::Color8 bottom in SetTextColor() 601 virtual const ut::Color8 GetVtxColor(u32 idx) const; 621 virtual void SetVtxColor(u32 idx, ut::Color8 value); 832 ut::Color8 m_TextColors[TEXTCOLOR_MAX];
|
| D | lyt_Picture.h | 124 virtual const ut::Color8 GetVtxColor(u32 idx) const; 137 virtual void SetVtxColor(u32 idx, ut::Color8 value); 308 ut::Color8 m_VtxColors[VERTEXCOLOR_MAX];
|
| D | lyt_Window.h | 47 ut::Color8 vtxColors[VERTEXCOLOR_MAX]; 181 virtual const ut::Color8 GetVtxColor(u32 idx) const; 194 virtual void SetVtxColor(u32 idx, ut::Color8 value);
|
| D | lyt_Material.h | 575 const ut::Color8& GetColor(u32 idx) const in GetColor() 594 void SetColor(u32 idx, ut::Color8 value) in SetColor() 1080 ut::Color8 m_Colors[MatColorMax];
|
| /NW4C-1.3.3/include/nw/font/ |
| D | font_CharWriter.h | 133 ut::Color8 min, in SetColorMapping() 134 ut::Color8 max in SetColorMapping() 145 const ut::Color8 GetColorMappingMin() const { return m_ColorMapping.min; } in GetColorMappingMin() 151 const ut::Color8 GetColorMappingMax() const { return m_ColorMapping.max; } in GetColorMappingMax() 202 void SetTextColor(ut::Color8 color) in SetTextColor() 214 ut::Color8 start, in SetTextColor() 215 ut::Color8 end in SetTextColor() 227 …const ut::Color8 GetTextColor() const { return m_TextColors[internal::TEXTCOLOR_STAR… in GetTextColor() 233 …const ut::Color8 GetGradationStartColor() const { return m_TextColors[internal::TEXTCOLOR_STAR… in GetGradationStartColor() 239 …const ut::Color8 GetGradationEndColor() const { return m_TextColors[internal::TEXTCOLOR_END]… in GetGradationEndColor() [all …]
|
| D | font_Types.h | 128 ut::Color8 color;
|
| D | font_DispStringBuffer.h | 33 ut::Color8 color[TEXTCOLOR_MAX];
|
| /NW4C-1.3.3/demos/Nw4cDemo/include/ |
| D | SmButton.h | 52 void SetColor( nw::ut::Color8 onColor, nw::ut::Color8 offColor ); 67 nw::ut::Color8 m_OnColor; 68 nw::ut::Color8 m_OffColor;
|
| D | SmPrimitive.h | 29 nw::ut::Color8 color; 107 void SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color ); 110 void SetVertexColor( nw::ut::Color8 color ); 153 void SetVertex( f32 x, f32 y, nw::ut::Color8 color );
|
| D | SmPerf.h | 37 nw::ut::Color8 costColor; 138 nw::ut::Color8 GetCostColor( uint costNo ) in GetCostColor()
|
| /NW4C-1.3.3/include/nw/dev/ |
| D | dev_DirectPrint.h | 191 void SetColor(ut::Color8 color); 205 ut::Color8 GetColor() const; 323 ut::Color8 m_Color; 369 void SetColor(ut::Color8){} 373 ut::Color8 GetColor() const{ return ut::Color8(); }
|
| /NW4C-1.3.3/include/nw/demo/ |
| D | demo_GraphicsDrawing.h | 152 void DrawLine( s32 x1, s32 y1, s32 x2, s32 y2, ut::Color8 color ) in DrawLine() 168 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ); 179 void DrawRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in DrawRectangle() 195 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); 206 void FillRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in FillRectangle() 222 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); 232 …lTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3, ut::Color8 color ); 241 void FillTriangles( const math::VEC2* pPointArray, s32 pointCount, ut::Color8 color ); 408 void BuildColor( const s32 vertexCount, const ut::Color8 color,
|
| /NW4C-1.3.3/include/nw/ut/ |
| D | ut_Color.h | 31 struct Color8 struct 34 typedef Color8 SelfType; //!< @details :private argument 67 /* ctor */ Color8() { this->SetU32(WHITE); } in Color8() argument 72 /* ctor */ /*implicit*/ Color8(u32 color) { this->SetU32(color); } in Color8() argument 77 /* ctor */ /*implicit*/ Color8(s32 red, s32 green, s32 blue, s32 alpha) in Color8() function 88 /* dtor */ ~Color8() {} in ~Color8() argument 553 typedef Color8 Color; argument 603 /* ctor */ /* implicit */ FloatColor(Color8 color) { operator =(color); } in FloatColor() 636 SelfType& operator =(Color8 color) 672 operator Color8() const in Color8() function [all …]
|