Home
last modified time | relevance | path

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

12

/NW4C-2.0.3/include/nw/dev/
Ddev_DirectPrint.h206 void SetColor(ut::Color8 color);
220 ut::Color8 GetColor() const;
226 void SetBackgroundColor(ut::Color8 color);
240 ut::Color8 GetBackgroundColor() const;
358 ut::Color8 m_Color;
361 ut::Color8 m_BackgroundColor;
397 void SetColor(ut::Color8){} in SetColor() argument
401 ut::Color8 GetColor() const{ return ut::Color8(); } in GetColor()
403 void SetBackgroundColor(ut::Color8){} in SetBackgroundColor() argument
407 ut::Color8 GetBackgroundColor() const{ return ut::Color8(); } in GetBackgroundColor()
/NW4C-2.0.3/sources/libraries/lyt/
Dlyt_DrawerGraphics.cpp158 nw::ut::Color8 white = pMaterial->GetColor( INTERPOLATECOLOR_WHITE ); in SetUpTexEnv()
183 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = white; in SetUpTexEnv()
189 else if ( *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) != white ) in SetUpTexEnv()
193 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = white; in SetUpTexEnv()
205 nw::ut::Color8 white = pMaterial->GetColor( INTERPOLATECOLOR_WHITE ); in SetUpTexEnv()
206 nw::ut::Color8 black = pMaterial->GetColor( INTERPOLATECOLOR_BLACK ); in SetUpTexEnv()
266 *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) = black; in SetUpTexEnv()
267 *reinterpret_cast< nw::ut::Color8* >( &command[ 10 ] ) = white; in SetUpTexEnv()
273 else if ( *reinterpret_cast< nw::ut::Color8* >( &command[ 4 ] ) != black || in SetUpTexEnv()
274 *reinterpret_cast< nw::ut::Color8* >( &command[ 10 ] ) != white ) in SetUpTexEnv()
[all …]
Dlyt_TextBox.cpp224 const ut::Color8
235 ut::Color8 value in SetVtxColor()
248 …interpret_cast<const u8*>(&m_TextColors[idx / (2 * sizeof(ut::Color8))])[idx % sizeof(ut::Color8)]; in GetVtxColorElement()
257 … reinterpret_cast<u8*>(&m_TextColors[idx / (2 * sizeof(ut::Color8))])[idx % sizeof(ut::Color8)]; in SetVtxColorElement()
325 ut::Color8 minCol = m_pMaterial->GetColor(INTERPOLATECOLOR_BLACK); in DrawSelf()
326 ut::Color8 maxCol = m_pMaterial->GetColor(INTERPOLATECOLOR_WHITE); in DrawSelf()
699 ut::Color8 topCol = m_TextColors[TEXTCOLOR_TOP]; in SetupTextWriter()
700 ut::Color8 btmCol = m_TextColors[TEXTCOLOR_BOTTOM]; in SetupTextWriter()
Dlyt_Common.cpp228 const ut::Color8
230 const ut::Color8 col, in MultipleAlpha()
234 ut::Color8 ret = col; in MultipleAlpha()
235 if (alpha != ut::Color8::ALPHA_MAX) in MultipleAlpha()
237 ret.a = u8(col.a * alpha / ut::Color8::ALPHA_MAX); in MultipleAlpha()
257 const ut::Color8* vtxColors in DrawQuad()
338 ut::Color8 color) in DrawLine()
619 GL::SetTevConstRgba(GraphicsResource& graphicsResource, int index, nw::ut::Color8 value) in SetTevConstRgba()
634 …stRgba(GraphicsResource& graphicsResource, int index, nw::ut::Color8 value0, nw::ut::Color8 value1) in SetTevConstRgba()
649 GL::SetTevBufferColor(nw::lyt::GraphicsResource &graphicsResource, ut::Color8 value) in SetTevBufferColor()
Dlyt_Bounding.cpp64 internal::DrawLine(drawInfo, GetVtxPos(), GetSize(), ut::Color8::GREEN); in DrawSelf()
Dlyt_Pane.cpp311 m_Alpha = ut::Color8::ALPHA_MAX; in Pane()
441 const ut::Color8
446 return ut::Color8::WHITE; in GetVtxColor()
452 ut::Color8 value in SetVtxColor()
495 return ut::Color8::ELEMENT_MAX; in GetVtxColorElement()
663 if (IsInfluencedAlpha() && m_Alpha != ut::Color8::ALPHA_MAX) in CalculateMtx()
668 const f32 invAlpha = 1.0f / ut::Color8::ALPHA_MAX; in CalculateMtx()
726 internal::DrawLine(drawInfo, GetVtxPos(), m_Size, ut::Color8::GREEN); in DrawSelf()
/NW4C-2.0.3/demos/Nw4cDemo/sources/
DSmButton.cpp37 m_OnColor( nw::ut::Color8::BLACK ), in SmButton()
38 m_OffColor( nw::ut::Color8::RED ) in SmButton()
46 m_Button->SetVertex( 0, x, y, nw::ut::Color8::BLACK ); in SmButton()
47 m_Button->SetVertex( 1, x, y + h, nw::ut::Color8::BLACK ); in SmButton()
48 m_Button->SetVertex( 2, x + w, y, nw::ut::Color8::BLACK ); in SmButton()
49 m_Button->SetVertex( 3, x + w, y + h, nw::ut::Color8::BLACK ); in SmButton()
58 …->SetVertex( 0, x - PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton()
59 …->SetVertex( 1, x - PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton()
60 …->SetVertex( 2, x + w + PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton()
61 …->SetVertex( 3, x + w + PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Color8::YELLOW ); in SmButton()
[all …]
DSmSliderBar.cpp56 m_Bar->SetVertex( 0, x - SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar()
57 m_Bar->SetVertex( 1, x - SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar()
58 m_Bar->SetVertex( 2, x + SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar()
59 m_Bar->SetVertex( 3, x + SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar()
67 …_Slider->SetVertex( 0, x - SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar()
68 …_Slider->SetVertex( 1, x - SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar()
69 …_Slider->SetVertex( 2, x + SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar()
70 …_Slider->SetVertex( 3, x + SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED ); in SmSliderBar()
DSmTouchPanelCamera.cpp139 … m_Collision.GetY(), nw::ut::Color8::YELLOW ); in Render()
140 … m_Collision.GetY() + m_Collision.GetHeight(), nw::ut::Color8::YELLOW ); in Render()
141 …_Collision.GetWidth(), m_Collision.GetY(), nw::ut::Color8::YELLOW ); in Render()
142 …_Collision.GetWidth(), m_Collision.GetY() + m_Collision.GetHeight(), nw::ut::Color8::YELLOW ); in Render()
150 … prim.SetVertex( m_TouchPanelPosX, m_TouchPanelPosY, nw::ut::Color8::RED ); in Render()
151 … prim.SetVertex( m_TouchPanelPosX, m_TouchPanelPosY + 4.f, nw::ut::Color8::RED ); in Render()
152 … prim.SetVertex( m_TouchPanelPosX + 4.f, m_TouchPanelPosY, nw::ut::Color8::RED ); in Render()
153 … prim.SetVertex( m_TouchPanelPosX + 4.f, m_TouchPanelPosY + 4.f, nw::ut::Color8::RED ); in Render()
Dmain.cpp447 _SET_PERF_CPU_BEGIN( "GFX :Update Scene ", nw::ut::Color8::RED ); in CreateGfxCache()
508 _SET_PERF_CPU_BEGIN( "GFX :Create Command Cache ", nw::ut::Color8::RED ); in CreateGfxCache()
675 _SET_PERF_GPU_BEGIN( "CPU WAIT ", nw::ut::Color8::RED ); in DemoScene()
699 _SET_PERF_GPU_BEGIN( "GPU_ALL_COST ", nw::ut::Color8::BLUE ); in DemoScene()
703 _SET_PERF_CPU_BEGIN( "GFX :CommandCache Copy ", nw::ut::Color8::RED ); in DemoScene()
734 _SET_PERF_CPU_BEGIN( "SYS :RenderTarget Change ", nw::ut::Color8::BLUE ); in DemoScene()
750 _SET_PERF_CPU_BEGIN( "LYT :Calc ", nw::ut::Color8::GREEN ); in DemoScene()
761 _SET_PERF_CPU_BEGIN( "LYT :CommandCache Copy ", nw::ut::Color8::GREEN ); in DemoScene()
777 _SET_PERF_CPU_BEGIN( "PERF:Performance Meter ", nw::ut::Color8::YELLOW ); in DemoScene()
792 _SET_PERF_CPU_BEGIN( "SYS :Transfer BUffer ", nw::ut::Color8::BLUE ); in DemoScene()
DSmPrimitive.cpp344 void Sm2DPrimPC::SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color ) in SetVertex()
356 void Sm2DPrimPC::SetVertexColor( nw::ut::Color8 color ) in SetVertexColor()
405 void Sm2DDynamicPrimPC::SetVertex( f32 x, f32 y, nw::ut::Color8 color ) in SetVertex()
/NW4C-2.0.3/include/nw/lyt/
Dlyt_Common.h163 const ut::Color8 MultipleAlpha(
164 const ut::Color8 col,
173 const ut::Color8* vtxColors = NULL);
184 ut::Color8 color);
191 const ut::Color8 cols[], in GetVtxColorElement()
197 return reinterpret_cast<const u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)]; in GetVtxColorElement()
203 ut::Color8 cols[], in SetVtxColorElement()
210 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement()
257 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value);
258 …tTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value0, ut::Color8 value1);
[all …]
Dlyt_TextBox.h301 const ut::Color8 GetTextColor(u32 type) const in GetTextColor()
319 void SetTextColor(u32 type, ut::Color8 value) in SetTextColor()
339 ut::Color8 top, in SetTextColor()
340 ut::Color8 bottom in SetTextColor()
603 virtual const ut::Color8 GetVtxColor(u32 idx) const;
623 virtual void SetVtxColor(u32 idx, ut::Color8 value);
834 ut::Color8 m_TextColors[TEXTCOLOR_MAX];
Dlyt_Picture.h126 virtual const ut::Color8 GetVtxColor(u32 idx) const;
139 virtual void SetVtxColor(u32 idx, ut::Color8 value);
310 ut::Color8 m_VtxColors[VERTEXCOLOR_MAX];
Dlyt_Window.h49 ut::Color8 vtxColors[VERTEXCOLOR_MAX];
183 virtual const ut::Color8 GetVtxColor(u32 idx) const;
196 virtual void SetVtxColor(u32 idx, ut::Color8 value);
Dlyt_Material.h577 const ut::Color8& GetColor(u32 idx) const in GetColor()
596 void SetColor(u32 idx, ut::Color8 value) in SetColor()
1082 ut::Color8 m_Colors[MatColorMax];
/NW4C-2.0.3/include/nw/font/
Dfont_CharWriter.h135 ut::Color8 min, in SetColorMapping()
136 ut::Color8 max in SetColorMapping()
147 const ut::Color8 GetColorMappingMin() const { return m_ColorMapping.min; } in GetColorMappingMin()
153 const ut::Color8 GetColorMappingMax() const { return m_ColorMapping.max; } in GetColorMappingMax()
204 void SetTextColor(ut::Color8 color) in SetTextColor()
216 ut::Color8 start, in SetTextColor()
217 ut::Color8 end in SetTextColor()
229 …const ut::Color8 GetTextColor() const { return m_TextColors[internal::TEXTCOLOR_STAR… in GetTextColor()
235 …const ut::Color8 GetGradationStartColor() const { return m_TextColors[internal::TEXTCOLOR_STAR… in GetGradationStartColor()
241 …const ut::Color8 GetGradationEndColor() const { return m_TextColors[internal::TEXTCOLOR_END]… in GetGradationEndColor()
[all …]
Dfont_Types.h130 ut::Color8 color;
Dfont_DispStringBuffer.h35 ut::Color8 color[TEXTCOLOR_MAX];
/NW4C-2.0.3/demos/Nw4cDemo/include/
DSmButton.h54 void SetColor( nw::ut::Color8 onColor, nw::ut::Color8 offColor );
69 nw::ut::Color8 m_OnColor;
70 nw::ut::Color8 m_OffColor;
DSmPrimitive.h31 nw::ut::Color8 color;
109 void SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color );
112 void SetVertexColor( nw::ut::Color8 color );
155 void SetVertex( f32 x, f32 y, nw::ut::Color8 color );
DSmPerf.h39 nw::ut::Color8 costColor;
140 nw::ut::Color8 GetCostColor( uint costNo ) in GetCostColor()
/NW4C-2.0.3/include/nw/demo/
Ddemo_GraphicsDrawing.h154 void DrawLine( s32 x1, s32 y1, s32 x2, s32 y2, ut::Color8 color ) in DrawLine()
170 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color );
181 void DrawRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in DrawRectangle()
197 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
208 void FillRectangle( s32 posh, s32 posv, s32 sizeh, s32 sizev, ut::Color8 color ) in FillRectangle()
224 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
234 …lTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3, ut::Color8 color );
243 void FillTriangles( const math::VEC2* pPointArray, s32 pointCount, ut::Color8 color );
410 void BuildColor( const s32 vertexCount, const ut::Color8 color,
/NW4C-2.0.3/include/nw/ut/
Dut_Color.h33 struct Color8 struct
36 typedef Color8 SelfType; //!< @details :private argument
69 /* ctor */ Color8() { this->SetU32(WHITE); } in Color8() argument
74 /* ctor */ /*implicit*/ Color8(u32 color) { this->SetU32(color); } in Color8() argument
79 /* ctor */ /*implicit*/ Color8(s32 red, s32 green, s32 blue, s32 alpha) in Color8() argument
90 /* dtor */ ~Color8() {} in ~Color8() argument
555 typedef Color8 Color; argument
605 /* ctor */ /* implicit */ FloatColor(Color8 color) { operator =(color); } in FloatColor()
638 SelfType& operator =(Color8 color)
674 operator Color8() const in Color8() function
[all …]
/NW4C-2.0.3/sources/libraries/dev/
Ddev_DirectPrint.cpp269 const ut::Color8& bgColor) in Erase()
273 this->InitializeContext(context, buffer, ut::Color8::BLACK, bgColor, direction); in Erase()
320 ut::Color8 color, in InitializeContext()
321 ut::Color8 bgColor, in InitializeContext()
854 this->SetColor(nw::ut::Color8::WHITE); in Initialize()
855 this->SetBackgroundColor(nw::ut::Color8::BLACK); in Initialize()
1002 DirectPrint::SetColor(ut::Color8 color) in SetColor()
1013 ut::Color8
1020 DirectPrint::SetBackgroundColor(ut::Color8 color) in SetBackgroundColor()
1031 ut::Color8

12