Some thoughts about code structure, as I read code, and find some things some hard to follow than others.
Booleans are values
(m_ui.SomeCheckBox->checkState() == Qt::CheckState::Checked) ? true : false
Should probably just be
#include <Cocoa/Cocoa.h> | |
#import <Metal/Metal.h> | |
#import <MetalKit/MetalKit.h> | |
#import <simd/simd.h> | |
// BUG: on OSX 10.15.6, the App menu is not clickable at the first activation, but becomes so after switching to another app | |
//---------------------------------------------------------------------------- |
Some thoughts about code structure, as I read code, and find some things some hard to follow than others.
(m_ui.SomeCheckBox->checkState() == Qt::CheckState::Checked) ? true : false
Should probably just be
My GIT habits :
On Windows, through GIT bash
No UI, except occasional gitk --all&
to visually check branches and commits
Use git fetch
then git merge --ff-only origin/master
git pull
auto-merging feature that messes up the historyUse git add -p
to :
//****************************************************************************** | |
// | |
// Copyright (c) 2016 Microsoft Corporation. All rights reserved. | |
// | |
// This code is licensed under the MIT License (MIT). | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
conan search <name> -r conan-center
What I liked :
What I don't like :
* `Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private` |
Can be broken for C Runtime, depending on versions of Windows, see fmod
broken here:
This is complicated as the UCRT is shipped by windows, but the c++ team first has to fix it then convince the windows team to ship a hotfix.
applyMatrix
, on Geometry
or BufferGeometry
, does not flip faces indices when applying a matrix that flips normals (determinant < 0).
Based on my looking at ThreeJS r115dev
source code, while trying to figure out how to
customize the lighting by writing my own shader.
ThreeJS has the following Material
classes :
MeshBasicMaterial
, not affected by lightsMeshLambertMaterial
: lighting is computed at each vertex, for diffuse lighting, and interpolated in gouraud like fashion