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.
This file contains 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 <assert.h> | |
#include <chrono> | |
#include <embedder.h> | |
#include <glfw3.h> | |
#include <iostream> | |
static_assert(FLUTTER_ENGINE_VERSION == 1, ""); | |
static const size_t kInitialWindowWidth = 800; |
This file contains 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
From metal documentation: | |
"Command buffer and command encoder objects are transient and designed for a single use. | |
They are very inexpensive to allocate and deallocate, so their creation methods return autoreleased objects." | |
https://developer.apple.com/library/content/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Cmd-Submiss/Cmd-Submiss.html | |
Autorelease example: | |
NSAutoreleasePool* autoreleasePool = [[NSAutoreleasePool alloc] init]; | |
//c is an autoreleased object |
This file contains 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
// | |
// ViewController.h | |
// ReplayKitExample | |
// | |
// Created by Christopher Stoll on 6/11/15. | |
// Copyright © 2015 Christopher Stoll. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import <ReplayKit/ReplayKit.h> |