Skip to content

Instantly share code, notes, and snippets.

View untodesu's full-sized avatar
💣
アイウエオ > アエイオウ

Kirill Dmitrievich untodesu

💣
アイウエオ > アエイオウ
View GitHub Profile
@untodesu
untodesu / render.cc
Last active November 8, 2019 16:51
render
#include "render.hh"
using namespace std;
using namespace sf;
namespace aux2d
{
namespace game
{
/// IRenderer implementation
@untodesu
untodesu / with.cc
Created November 23, 2019 17:17
hungarian stuff
#include <cstdint>
#include <cstddef>
#include <cstdio>
#include <cstring>
class someClass {
private:
uint32_t m_iSomeField;
public:
@untodesu
untodesu / mmu.cc
Last active November 25, 2019 12:27
V16 MMU
/*
The V16 Virtual Machine
Licensed under the MIT License
File: Implement V16 MMU stuff.
NOTE: THIS FILE CONTAINS AN ABSOLUTELY CURSED CODE,
SO IF YOU ARE A VIRGIN PROGRAMMER WHO DID NOT
SEE SOME SHIT DO NOT LOOK HERE
*/
#include <iostream>
#include "./dll.hh"
using namespace std;
//Implementation for WINNT
#if defined(_WIN32)
#include <Windows.h>
//Copy std::string to wstring
//...
//================================
// Graphics interface
//================================
class IGraphics {
public:
//================================
// Load texture and get it's ID
//================================
//================================
// The AUX2D Engine
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/
//
// File: The double-ended linear memory allocator
//================================
//================================
// The AUX2D Game Stub
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/
//
// File: Temporary entry point
//================================
//================================
// The AUX2D Engine
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/
//
// File: The memory allocator.
//================================
#include "cbase.h"
#include "hud_display.h"
#include "iclientmode.h"
#include <Color.h>
#include <KeyValues.h>
#include <vgui/ISurface.h>
#include <vgui/ISystem.h>
#include <vgui/IVGui.h>
#include "cbase.h"
#include "filesystem.h"
#include "../gameui_manager.h"
#include "vgui_controls/AnimationController.h"
#include <vgui/ISurface.h>
#include <vgui/ILocalize.h>
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"