Updated Imgui and ImguiSFML
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef IMGUI_SFML_H
|
||||
#define IMGUI_SFML_H
|
||||
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
@@ -17,7 +20,7 @@ namespace ImGui
|
||||
{
|
||||
namespace SFML
|
||||
{
|
||||
void Init(sf::RenderTarget& target, sf::Texture* fontTexture = NULL);
|
||||
void Init(sf::RenderTarget& target, bool loadDefaultFont = true);
|
||||
|
||||
void ProcessEvent(const sf::Event& event);
|
||||
|
||||
@@ -25,10 +28,12 @@ namespace SFML
|
||||
void Update(sf::Window& window, sf::RenderTarget& target, sf::Time dt);
|
||||
void Update(const sf::Vector2i& mousePos, const sf::Vector2f& displaySize, sf::Time dt);
|
||||
|
||||
void Render(sf::RenderTarget& target);
|
||||
|
||||
void Shutdown();
|
||||
|
||||
void createFontTexture(sf::Texture& texture);
|
||||
void setFontTexture(sf::Texture& texture);
|
||||
void UpdateFontTexture();
|
||||
sf::Texture& GetFontTexture();
|
||||
}
|
||||
|
||||
// custom ImGui widgets for SFML stuff
|
||||
@@ -73,3 +78,5 @@ namespace SFML
|
||||
void DrawRect(const sf::FloatRect& rect, const sf::Color& color, float rounding = 0.0f, int rounding_corners = 0x0F, float thickness = 1.0f);
|
||||
void DrawRectFilled(const sf::FloatRect& rect, const sf::Color& color, float rounding = 0.0f, int rounding_corners = 0x0F);
|
||||
}
|
||||
|
||||
#endif //# IMGUI_SFML_H
|
||||
|
||||
Reference in New Issue
Block a user