-
Notifications
You must be signed in to change notification settings - Fork 2
Coding guidelines
Martijn Koopman edited this page Apr 3, 2020
·
3 revisions
Data types
- All container classes must be templated. (Container classes: Matrix, Vector, Image)
- All algorithm classes should work with doubles, not floats.
- All data mapped to graphics memory should be floats (32-bit) to save memory, not doubles.
C++11
Utilize features of C++11 over C++0x if practical.
Rule of 5
If you write for a class one of a destructor, copy/move constructor, or copy/move assignment operator, then you must write all of them.
Arrays
Always use std::array over C-style arrays. They have practically no overhead.
- Home
- Getting started
- Building SpatiumGL
- Create first app
- Apps
- Point cloud
- Read from LAS file
- Visualize
- Filter points
- Spatial index (octree)
- Mesh
- Read from OBJ file
- Visualize
- Image
- Image vs Pixmap
- Read from file
- Apply filter
- Grayscale
- Gaussian
- Development
- Coding guidelines
- Add module
- Modules
- Core
- GFX3D
- GFX3D OpenGL
- IO LAS
- IDX
- Third party