This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Siv3D.hpp> | |
#include <imgui.h> | |
#include "imgui_impl_s3d.h" | |
#include "DearImGuiAddon.hpp" | |
/// @brief アドオンの登録時の初期化処理を記述します。 | |
/// @remark この関数が false を返すとアドオンの登録は失敗します。 | |
/// @return アドオンの初期化に成功した場合 true, それ以外の場合は false | |
bool DearImGuiAddon::init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<Siv3D.hpp> | |
#include"PsdReader.h" | |
void Main() | |
{ | |
Window::Resize(1080, 720); | |
Scene::SetBackground(Palette::White); | |
Size boxSize(5, 5); | |
Texture tex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> | |
#include"HogeGUI.h" | |
namespace HogeGUI | |
{ | |
struct IControl | |
{ | |
ID id; | |
bool used; | |
RectF rect; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<Siv3D.hpp> | |
#include<any> | |
#include<typeinfo> | |
#include"SasaGUI.hpp" | |
/// <summary> | |
/// type_infoをコピー可能にするラッパクラス | |
/// </summary> | |
class Type | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <clocale> | |
#include <string> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/keysym.h> | |
#include <list> | |
#include <cstdlib> | |
#include <vector> | |
#include <sstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.3 | |
class TextRenderer | |
{ | |
public: | |
TextRenderer(Font& font) | |
:m_font(font) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.3 | |
struct Arc | |
{ | |
Vec2 center; | |
double r; | |
double startAngle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Siv3D.hpp> // OpenSiv3D v0.6.4 | |
void DrawAngleText(const Font& font, const Circle& circle, double angle, ColorF color) | |
{ | |
const auto degText = font(U"{:.1f}"_fmt(ToDegrees(angle))); | |
degText.region(Arg::topCenter = circle.center + Vec2{ 0, circle.r + 2 }).draw(ColorF(Scene::GetBackground(), 0.8)); | |
degText.draw(Arg::topCenter = circle.center + Vec2{ 0, circle.r + 2 }, color); | |
} | |
void Main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Builder.hpp" | |
namespace GUI | |
{ | |
BuilderContext::BuilderContext(Widget& root) | |
: m_root(root) | |
{ | |
reset(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.6 | |
class Delay | |
{ | |
public: | |
constexpr Delay(Duration duration) noexcept | |
: m_duration(duration.count()) | |
{ | |
assert(duration >= 0s); |
OlderNewer