This file contains 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> | |
struct ParamScale | |
{ | |
float scale; | |
float unused[3]; | |
}; | |
void setScale(const int scale) | |
{ |
This file contains 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
#define NOMINMAX | |
#define STRICT | |
#include <windows.h> | |
#include <Siv3D.hpp> | |
#include <HamFramework.hpp> | |
#include <Siv3DAddon/LeapMotion.hpp> | |
// Leap Motion で アプリケーションランチャー | |
// |
This file contains 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
#define NOMINMAX | |
#define STRICT | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <Siv3D.hpp> | |
struct DIBSection | |
{ | |
HDC hdc; |
This file contains 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> | |
// hqx : https://code.google.com/archive/p/hqx/ | |
extern "C" { | |
#include "hqx.h" | |
}; | |
void Main() | |
{ |
This file contains 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
#define NOMINMAX | |
#define STRICT | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <Siv3D.hpp> | |
// システムの電源情報をWin32APIにより取得し保持する | |
class PowerStatus | |
{ |
This file contains 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 <memory> | |
// Lua 5.2.x (need 'lua52.dll' at runtime) | |
#include <lua.hpp> | |
#pragma comment(lib, "lua52.lib") | |
// Sol 2.14 | |
#include <sol.hpp> |
This file contains 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 <memory> | |
// Console app | |
#pragma comment(linker, "/SUBSYSTEM:CONSOLE") | |
// Lua 5.2.x (need 'lua52.dll' at runtime) | |
#include <lua.hpp> | |
#pragma comment(lib, "lua52.lib") |
This file contains 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> | |
class Bubble : public IEffect | |
{ | |
public: | |
Bubble(const Vec2& pos, const Vec2& vel, const double r) : pos_(pos), vel_(vel), r_(r) | |
{ | |
} | |
bool update(double t) override |
This file contains 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> | |
struct ScrollLines | |
{ | |
Array<RectF> lines; | |
int frame = 0; | |
const int duration; | |
const int fade; |
This file contains 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 <memory> | |
#include <list> | |
#include <unordered_map> | |
// ---------------------------------------- | |
// Entity インスタンス間の共有データ | |
// ---------------------------------------- |