在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:NoelFB/blah开源软件地址:https://github.com/NoelFB/blah开源编程语言:C++ 99.2%开源软件介绍:blahA small 2D C++ Game Framework, using few dependencies and simple code to maintain easy building and portability. ☆ This will likely see breaking changes! Use at your own risk! ☆ a sample application#include <blah.h>
using namespace Blah;
Batch batch;
int main()
{
Config config;
config.name = "blah app";
config.on_render = []()
{
App::backbuffer()->clear(Color::black);
auto center = App::get_backbuffer_size() / 2;
auto rotation = Time::seconds * Calc::TAU;
auto transform = Mat3x2f::create_transform(center, Vec2f::zero, Vec2f::one, rotation);
batch.push_matrix(transform);
batch.rect(Rectf(-32, -32, 64, 64), Color::red);
batch.pop_matrix();
batch.render();
batch.clear();
};
App::run(&config);
return 0;
}
building
notes
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论