Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
// Resourceless Dialog | |
// Dialog Template by Max McGuire | |
// http://www.flipcode.com/archives/Dialog_Template.shtml | |
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
class DialogTemplate { | |
public: |
MvM Population KeyValues | |
Documentation by sigsegv | |
Based on TF2 version 20160107a | |
Legend | |
- subtree: additional recursive level of KeyValues | |
- int: integer value | |
- float: floating-point value | |
- bool: boolean value (0 or 1) |
/// | |
/// Author: Daniel Wright | |
/// Influenced by: https://github.com/vinceallenvince/floatToString/blob/master/floatToString.h | |
/// | |
/// Simple demo involving a custom float to string implementation | |
/// Should be portable, but cannot process IEEE-754 double precision numbers | |
/// ^^ this can only handle single (float32) floating point numbers. | |
/// | |
/// Decently accurate compared to sprintf, but I don't think it is going to be | |
/// nearly as rigorous. |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# CMakeLists.txt | |
cmake_minimum_required(VERSION 3.0) | |
project(example) | |
set(CMAKE_CXX_STANDARD 11) | |
find_package(SDL2 REQUIRED) | |
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") | |
set(CMAKE_COMPILER_IS_CLANGCXX 1) | |
endif () |
Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube
Also check out Minimal D3D11 pt2, reconfigured for instanced rendering and with a smaller, tighter, simplified overall code structure, or Minimal D3D11 pt3, with shadowmapping + showcasing a range of alternative setup and rendering techniques.
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d
// Send toast notifications in Windows 10, using Windows Runtime, | |
// without any language projection, in PLAIN C | |
// Copyright (c) 2021 Valentin - Gabriel Radu | |
// | |
// MIT License | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this softwareand 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 |
Moved to: https://blog.theprogrammingjunkie.com/post/sdl2-cheatsheet/ |