with user_count as (
select
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 <cairo/cairo.h> | |
#include <cairo/cairo-gl.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_syswm.h> | |
int main(int argc, char* argv[]) { | |
SDL_Init(SDL_INIT_VIDEO); | |
auto win = SDL_CreateWindow("crsl", 300, 300, 512, 512, SDL_WINDOW_OPENGL); | |
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
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 "Model.hpp" | |
bool core::ModelLoader::loadModel(const char* fp, Model* m) | |
{ | |
core::log("Loading " + (std::string)fp, core::green); | |
Assimp::Importer importer; // used to import the model | |
const aiScene* scene = importer.ReadFile(fp, | |
aiProcess_Triangulate | |