aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
Commit message (Collapse)AuthorAge
...
* Correct sub-pixel font rendering with OpenGLJoe Wilm2016-05-20
| | | | | | | | | Uses the GL_ARB_blend_func_extended to get single-pass, per-channel alpha blending. gl_generator is now used instead of gl to enable the extension. The background color is removed since that presumably needs to run in a separate pass.
* Use subpixel font renderingJoe Wilm2016-04-11
| | | | | | | OpenGL only supports shared alpha blending. Subpixel font rendering requires using the font RGB values as alpha masks for the corresponding RGB channels. To support this, blending is implemented in the fragment shader.
* Add a GridJoe Wilm2016-04-10
| | | | | | | | The grid holds the state of the terminal with row-major ordering. Eventually, the grid::Cell type will hold other attributes such as color, background color, decorations, and weight. An initialization list is added for common ASCII symbols.
* Rasterizer uses DPI from GlutinJoe Wilm2016-02-27
|
* Font no longer hardcoded in get_glyphJoe Wilm2016-02-27
|
* Add support for multiple font faces in rasterizerJoe Wilm2016-02-27
|
* Fix some compiler warningsJoe Wilm2016-02-25
|
* Move rendering stuff into renderer modJoe Wilm2016-02-25
|
* Abstract glyph rendering, poorlyJoe Wilm2016-02-24
| | | | | Adds a QuadRenderer class that actually only works with glyphs for now. Manually place a few glyphs to demonstrate that it works.
* Bit of cleanupJoe Wilm2016-02-24
| | | | | | | - Commend vertex slice - Add helper for binding mask texture (and specify that it's a mask) - Prefix uniform members of ShaderProgram with u_. This makes it easy to identify in the rest of code.
* Use indexed drawing to draw quadsJoe Wilm2016-02-24
|
* build rect describing glyph quadJoe Wilm2016-02-24
|
* Render the letter JJoe Wilm2016-02-23
| | | | This letter brought to you by OpenGL and freetype.
* Implement very basic glyph rasterizationJoe Wilm2016-02-21
| | | | | There are several assumptions made at this point and very little (no) error handling done.
* Add function for listing font names on linuxJoe Wilm2016-02-21
| | | | | | This function isn't exactly useful, but it's working ffi with the fontconfig library. Woo! Next step will be returning some objects with more information (like font path so we can start rendering glyphs!).
* Initialize new cargo binary projectJoe Wilm2016-02-21