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 Titlebar | |
{ | |
public: | |
Titlebar( | |
const int height = 24, | |
const int margin = 2, | |
const Color color = Palette::Mediumorchid, | |
const Color fontColor = Palette::White, |
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> | |
void Main() | |
{ | |
const Size windowSize{ 640, 480 }; | |
RenderTexture renderTexture{ windowSize, Palette::Black }; | |
while (System::Update()) | |
{ |
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 <algorithm> | |
void Main() | |
{ | |
Window::SetTitle(L"imgcomb"); | |
Window::Resize(30 + 240 + 30 + 240 + 30, 500); | |
Graphics::SetBackground(Color(240)); |
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 <HamFramework.hpp> | |
// こちらで詳しい解説がされています: | |
// http://qiita.com/hamukun8686/items/4620d630b538c78a6e02 | |
enum class SceneType | |
{ | |
Empty, | |
Title, |
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> | |
//#define ENCODE_IMAGES | |
String encodeFile(const FilePath& filepath) | |
{ | |
return Base64::Encode(BinaryReader(filepath).readWhole()); | |
} | |
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
#include <Siv3D.hpp> | |
#include <HamFramework.hpp> | |
void Main() | |
{ | |
ScalableWindow::Setup(640, 480); | |
Graphics::SetBackground(Palette::White); | |
Stopwatch resizeWatch(true); |
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
// Siv3D : http://play-siv3d.hateblo.jp/ | |
#include <Siv3D.hpp> | |
// Lua : https://www.lua.org/ | |
#include <lua.hpp> | |
#pragma comment(lib, "lua52.lib") | |
// LuaBridge : https://github.com/vinniefalco/LuaBridge | |
#include <LuaBridge.h> | |
using namespace luabridge; |
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 CB1 | |
{ | |
float strength; | |
float reserved1; | |
float reserved2; | |
float reserved3; | |
}; |
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> | |
void Main() | |
{ | |
const Size windowSize(640, 480); | |
const Color bg = Palette::Black; | |
RenderTexture renderTexture(windowSize.x / 2, windowSize.y, bg); |
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 <iostream> | |
#include <algorithm> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <list> | |
#include <unordered_map> | |
using namespace std; |
OlderNewer