Skip to content

Instantly share code, notes, and snippets.

View surafel911's full-sized avatar

Surafel Assefa surafel911

View GitHub Profile
#include <qubit/platform/platform.h>
#include <qubit/platform/platform_winapi.h>
#include <stdbool.h>
#include <windows.h>
#include <glad/wgl.h>
#include <qubit/qubit.h>
CC = clang
CFLAGS = -m64 -Wall -Werror -std=c99
BINARY = qubit
ifeq ($(OS),Windows_NT)
MACROS =
INCLUDES = -Iinclude/
LIBDIR :=
/*
* Copyright (c) 2010-2017 Richard Braun.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
Thread 1 "qubit" hit Breakpoint 1, gladLoaderLoadGL () at src/opengl/gl.c:10465
10465 int version = 0;
(gdb) next
10469 handle = glad_get_dlopen_handle(NAMES, sizeof(NAMES) / sizeof(NAMES[0]));
(gdb) next
10470 if (handle) {
(gdb) step
10471 userptr.gl_handle = handle;
(gdb) step
10479 (GLADglprocaddrfunc) glad_dlsym_handle(handle, "glXGetProcAddressARB");
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_multisample, GLX_EXT_buffer_age,
1 #include <muart.h>
2 #include <muart_i.h>
3 #include <macros.h>
4
5 #include <stdbool.h>
6 #include <stdint.h>
7
8 struct act {
9 uint32_t message_size;
10 uint32_t message_code;
#include <iostream>
#include <map>
#include <bitset>
struct Texture;
struct Component;
class GameObject;