Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer
This commit is contained in:
27
lib/All/JoltPhysics/TestFramework/UI/UIImage.h
Normal file
27
lib/All/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;
|
||||
};
|
||||
Reference in New Issue
Block a user