mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
initial commit jolt
This commit is contained in:
parent
0c2aa5328c
commit
8acf7da95b
1086 changed files with 214612 additions and 4 deletions
27
Engine/lib/JoltPhysics/TestFramework/UI/UIImage.h
Normal file
27
Engine/lib/JoltPhysics/TestFramework/UI/UIImage.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <UI/UIElement.h>
|
||||
#include <UI/UITexturedQuad.h>
|
||||
|
||||
/// A static image UI element
|
||||
class UIImage : public UIElement
|
||||
{
|
||||
public:
|
||||
JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, UIImage)
|
||||
|
||||
/// Set properties
|
||||
void SetImage(const UITexturedQuad &inImage) { mImage = inImage; }
|
||||
|
||||
/// Cloning / copying
|
||||
virtual void CopyTo(UIElement *ioElement) const override;
|
||||
|
||||
/// Draw element
|
||||
virtual void Draw() const override;
|
||||
|
||||
private:
|
||||
UITexturedQuad mImage;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue