Skip to content

Instantly share code, notes, and snippets.

@lorenzored98
lorenzored98 / fullscreen_quad_without_vertex_buffer.html
Last active May 4, 2023 18:56
Fullscreen quad (section of a triangle) without vertex buffer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fullscreen Quad (section of a triangle) without vertex buffer</title>
<style>
* {
margin: 0;
padding: 0;
@lorenzored98
lorenzored98 / quad_without_vertex_buffer.html
Last active May 4, 2023 18:56
Quad without vertex buffer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quad without vertex buffer</title>
<style>
* {
margin: 0;
padding: 0;
@lorenzored98
lorenzored98 / win32_simple_draw.cpp
Last active May 4, 2023 12:22
Win32 draw into bitmap and blit to window
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <assert.h>
static bool resize = false;
struct WinBuffer {
int width;
int height;
unsigned char* data;