Pt2di Rectang_Object::p1() const { Elise_Rect r = box(); ASSERT_USER ( (r._dim == 2), "dim != 2 for Rectang_Object::p0" ); return Pt2di(r._p1[0],r._p1[1]); }
void VGFX_CmdQuePushBack(UINT32 u4Reg, UINT32 u4Val) { UINT32 u4RegOffset; u4RegOffset = ((u4Reg << 2) & 0xfff); if ((_GfxVirtualCmdQue.i4QueSize + GFX_CMD_MARGIN) >= _rGfxCmdQue->i4QueCapacity) { //printf("****VCMDQUE: PushFail!\n"); ASSERT_USER(); } u4Reg = (VGFX_CMDQUE_ADDR) | (u4RegOffset); // write one cmd to cmdque buffer _u8GfxVirtualCmdBuf[_GfxVirtualCmdQue.i4QueSize++] = ((((UINT64) u4Reg) << 32) | u4Val); if (_GfxVirtualCmdQue.i4QueSize >= E_GFX_CQ_QCAPACITY) { ASSERT_USER(); } }
void GFX_CmdQuePushBack(UINT32 u4Reg, UINT32 u4Val) { UINT32 u4RegOffset = ((u4Reg << 2) & 0xfff); //make sure comd que size won't exceed limit if ((_GfxVirtualCmdQue.i4QueSize + GFX_CMD_MARGIN) >= _rGfxCmdQue->i4QueCapacity) { //printf("****VCMDQUE: PushFail!\n"); ASSERT_USER(); } // calculate GFX register address u4Reg = (GFX_ADDR) | (u4RegOffset); _u8GfxVirtualCmdBuf[_GfxVirtualCmdQue.i4QueSize++] = ((((UINT64) u4Reg) << 32) | u4Val); if (_GfxVirtualCmdQue.i4QueSize >= E_GFX_CQ_QCAPACITY) { ASSERT_USER(); } }
Flux_Pts Rectang_Object::lmr_all_pts(INT dir) const { Elise_Rect r = box(); ASSERT_USER((r._dim == 1),"dim != 1 for lmr_all_pts(INT dir)"); return line_map_rect(dir,x0(),x1()); }
Flux_Pts Rectang_Object::lmr_all_pts(Pt2di dir) const { Elise_Rect r = box(); ASSERT_USER((r._dim == 2),"dim != 2 for lmr_all_pts(Pt2di dir)"); return line_map_rect(dir,p0(),p1()); }
INT Rectang_Object::x1() const { Elise_Rect r = box(); ASSERT_USER((r._dim == 1),"dim != 1 for Rectang_Object::x1"); return r._p1[0]; }