Home
last modified time | relevance | path

Searched refs:Color8 (Results 1 – 25 of 38) sorted by relevance

12

/NW4C-1.2.23/sources/libraries/lyt/
Dlyt_DrawerGraphics.cpp125 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 …]
Dlyt_TextBox.cpp222 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()
Dlyt_Common.cpp226 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()
Dlyt_Bounding.cpp62 internal::DrawLine(drawInfo, GetVtxPos(), GetSize(), ut::Color8::GREEN); in DrawSelf()
Dlyt_Pane.cpp309 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()
734 internal::DrawLine(drawInfo, GetVtxPos(), m_Size, ut::Color8::GREEN); in DrawSelf()
/NW4C-1.2.23/demos/Nw4cDemo/sources/
DSmButton.cpp35 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 …]
DSmSliderBar.cpp54 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()
DSmTouchPanelCamera.cpp137 … 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()
Dmain.cpp449 _SET_PERF_CPU_BEGIN( "GFX :Update Scene ", nw::ut::Color8::RED ); in CreateGfxCache()
510 _SET_PERF_CPU_BEGIN( "GFX :Create Command Cache ", nw::ut::Color8::RED ); in CreateGfxCache()
668 _SET_PERF_GPU_BEGIN( "CPU WAIT ", nw::ut::Color8::RED ); in DemoScene()
692 _SET_PERF_GPU_BEGIN( "GPU_ALL_COST ", nw::ut::Color8::BLUE ); in DemoScene()
696 _SET_PERF_CPU_BEGIN( "GFX :CommandCache Copy ", nw::ut::Color8::RED ); in DemoScene()
727 _SET_PERF_CPU_BEGIN( "SYS :RenderTarget Change ", nw::ut::Color8::BLUE ); in DemoScene()
743 _SET_PERF_CPU_BEGIN( "LYT :Calc ", nw::ut::Color8::GREEN ); in DemoScene()
754 _SET_PERF_CPU_BEGIN( "LYT :CommandCache Copy ", nw::ut::Color8::GREEN ); in DemoScene()
770 _SET_PERF_CPU_BEGIN( "PERF:Performance Meter ", nw::ut::Color8::YELLOW ); in DemoScene()
785 _SET_PERF_CPU_BEGIN( "SYS :Transfer BUffer ", nw::ut::Color8::BLUE ); in DemoScene()
DSmPrimitive.cpp342 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.2.23/include/nw/lyt/
Dlyt_Common.h157 const ut::Color8 MultipleAlpha(
158 const ut::Color8 col,
167 const ut::Color8* vtxColors = NULL);
178 ut::Color8 color);
185 const ut::Color8 cols[], in GetVtxColorElement()
191 return reinterpret_cast<const u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)]; in GetVtxColorElement()
197 ut::Color8 cols[], in SetVtxColorElement()
204 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement()
251 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value);
252 …tTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value0, ut::Color8 value1);
[all …]
Dlyt_TextBox.h299 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);
817 ut::Color8 m_TextColors[TEXTCOLOR_MAX];
Dlyt_Picture.h124 virtual const ut::Color8 GetVtxColor(u32 idx) const;
137 virtual void SetVtxColor(u32 idx, ut::Color8 value);
301 ut::Color8 m_VtxColors[VERTEXCOLOR_MAX];
Dlyt_Window.h47 ut::Color8 vtxColors[VERTEXCOLOR_MAX];
181 virtual const ut::Color8 GetVtxColor(u32 idx) const;
194 virtual void SetVtxColor(u32 idx, ut::Color8 value);
Dlyt_Material.h575 const ut::Color8& GetColor(u32 idx) const in GetColor()
594 void SetColor(u32 idx, ut::Color8 value) in SetColor()
1074 ut::Color8 m_Colors[MatColorMax];
/NW4C-1.2.23/include/nw/font/
Dfont_CharWriter.h133 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 …]
Dfont_Types.h128 ut::Color8 color;
Dfont_DispStringBuffer.h33 ut::Color8 color[TEXTCOLOR_MAX];
/NW4C-1.2.23/demos/Nw4cDemo/include/
DSmButton.h52 void SetColor( nw::ut::Color8 onColor, nw::ut::Color8 offColor );
67 nw::ut::Color8 m_OnColor;
68 nw::ut::Color8 m_OffColor;
DSmPrimitive.h29 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 );
DSmPerf.h37 nw::ut::Color8 costColor;
138 nw::ut::Color8 GetCostColor( uint costNo ) in GetCostColor()
/NW4C-1.2.23/include/nw/dev/
Ddev_DirectPrint.h191 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.2.23/include/nw/demo/
Ddemo_GraphicsDrawing.h120 void DrawLine( s32 x1, s32 y1, s32 x2, s32 y2, ut::Color8 color ) in DrawLine()
136 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color );
147 void DrawRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in DrawRectangle()
163 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
174 void FillRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in FillRectangle()
190 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
200 …lTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3, ut::Color8 color );
209 void FillTriangles( const math::VEC2* pPointArray, s32 pointCount, ut::Color8 color );
/NW4C-1.2.23/include/nw/ut/
Dut_Color.h31 struct Color8 struct
34 typedef Color8 SelfType; //!< @details :private argument
67 /* ctor */ Color8() { this->SetU32(WHITE); } in Color8() function
72 /* ctor */ /*implicit*/ Color8(u32 color) { this->SetU32(color); } in Color8() function
77 /* ctor */ /*implicit*/ Color8(s32 red, s32 green, s32 blue, s32 alpha) in Color8() argument
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 …]
/NW4C-1.2.23/sources/libraries/demo/
Ddemo_GraphicsDrawing.cpp241 GraphicsDrawing::DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ) in DrawLine()
256 GraphicsDrawing::DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in DrawRectangle()
278 GraphicsDrawing::FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in FillRectangle()
294 …llTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3, ut::Color8 color ) in FillTriangle()
309 GraphicsDrawing::FillTriangles( const math::VEC2* pPointArray, s32 pointCount, ut::Color8 color ) in FillTriangles()

12