mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-05 15:56:00 +02:00
BeefySysLib point/rect updates, async pipe fixes
This commit is contained in:
parent
81a9478e77
commit
fe1aa3c26e
32 changed files with 282 additions and 120 deletions
|
@ -201,7 +201,7 @@ public:
|
|||
bool mClipped;
|
||||
bool mTexWrap;
|
||||
bool mWireframe;
|
||||
Rect mClipRect;
|
||||
RectF mClipRect;
|
||||
CullMode mCullMode;
|
||||
Topology3D mTopology;
|
||||
|
||||
|
@ -213,7 +213,7 @@ public:
|
|||
virtual void SetTexWrap(bool wrap) { mTexWrap = wrap; }
|
||||
virtual void SetWireframe(bool wireframe) { mWireframe = wireframe; }
|
||||
virtual void SetClipped(bool clipped) { mClipped = clipped; }
|
||||
virtual void SetClipRect(const Rect& rect) { mClipRect = rect; }
|
||||
virtual void SetClipRect(const RectF& rect) { mClipRect = rect; }
|
||||
virtual void SetWriteDepthBuffer(bool writeDepthBuffer) { mWriteDepthBuffer = writeDepthBuffer; }
|
||||
virtual void SetDepthFunc(DepthFunc depthFunc) { mDepthFunc = depthFunc; }
|
||||
virtual void SetTopology(Topology3D topology) { mTopology = topology; }
|
||||
|
|
|
@ -71,11 +71,11 @@ void TextureSegment::SetImageData(ImageData& imageData)
|
|||
SetBits(0, 0, imageData.mWidth, imageData.mHeight, imageData.mStride, imageData.mBits);
|
||||
}
|
||||
|
||||
Rect TextureSegment::GetRect()
|
||||
RectF TextureSegment::GetRect()
|
||||
{
|
||||
float x1 = mU1 * mTexture->mWidth;
|
||||
float x2 = mU2 * mTexture->mWidth;
|
||||
float y1 = mV1 * mTexture->mHeight;
|
||||
float y2 = mV2 * mTexture->mHeight;
|
||||
return Rect(x1, y1, x2 - x1, y2 - y1);
|
||||
return RectF(x1, y1, x2 - x1, y2 - y1);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
void GetImageData(ImageData& imageData, int destX, int destY);
|
||||
void SetImageData(ImageData& imageData);
|
||||
|
||||
Rect GetRect();
|
||||
RectF GetRect();
|
||||
};
|
||||
|
||||
NS_BF_END;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue