Comments (4)
The main concern will be to keep the good readable for someone with no c++ background and the op << does make thing harder to grasp for new developers.
The thing is, using C++ ought to mean using C++. I can understand not wanting to go into the deep magic of template metaprogramming and so forth. But even "Hello, World!" for C++ uses <<
. I don't think it's unreasonable to expect people to know what <<
does. And failing that, a simple comment that says, //reads the whole file
would be sufficient.
Personally, I've always been partial to the "seek to the back, get the size, seek to the front, and read the thing" method of reading an entire file. Despite the flaws, it has the virtue of common usage and ease of readability (don't forget to open it in binary reading mode).
from ogl.
from ogl.
from ogl.
from ogl.
Related Issues (20)
- Domain expired HOT 3
- Tutorial 05: trying my own .bmp files turns out black HOT 3
- Tutorial 05: Texture incomplete on cube HOT 3
- Playground background wrong color in documentation
- 3D Model Keyboard Mouse Controller
- error when compiling Bullet
- Tutorial 4: Output looks nothing like what I have. HOT 3
- [Info] Tutorial 08 GTKMM glArea with shaders loaded from obj file HOT 3
- is this glm::translate call correct? HOT 1
- Quick question about the sign in TestRayOBBIntersection function
- Cannot execute project18 HOT 1
- Tutorial 4 projection issues HOT 1
- glreadpixels picking up wrong color
- why lRayEnd_NDC's z setted to 0 in misc05_picking_custom example
- Memory leak in Particle demo.
- Some comments on the Picking with an OpenGL Hack article
- Skybox please HOT 2
- Licensing: Request to make a fork HOT 7
- Can't compile due to the lack of glplatform.h HOT 2
- Tutorial 13: Orthogonalization applet link down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogl.