Commit Graph

5867 Commits (fix/revert-distance-display)

Author SHA1 Message Date
Hleb Valoshka aeaa134264 Revert "Fix distance display for m and km units"
This reverts commit 99c3e50a18.
2020-06-10 00:07:15 +03:00
Hleb Valoshka 0b6940565a [celx] Update ColorAttributeIndex value in gl.Color
...to fix font colors
2020-06-09 21:28:37 +03:00
Hleb Valoshka 457fcc1bac [celx] Return text width from font:render
...instead of updating ModelView matrix, fixes text rendering in LUT5
2020-06-09 21:28:37 +03:00
Hleb Valoshka a33e24914b [celx] Add method celestia:version() 2020-06-09 21:28:37 +03:00
Hleb Valoshka d9243202fa [celx] Add method font:unbind() 2020-06-09 21:28:37 +03:00
Hleb Valoshka e9c7de007a Add missing Overlay::beginText/endText 2020-06-09 13:53:34 +03:00
Levin Li 0110862f27 Allow to change font after initialization 2020-06-08 18:19:35 +08:00
Levin Li a0eb4038f1 Support safe area insets 2020-06-06 09:12:07 +08:00
Hleb Valoshka 4731334605 Small optimization 2020-06-01 10:36:42 +03:00
Hleb Valoshka e8f813ab38 Round label position to decreate jittering 2020-06-01 10:36:42 +03:00
Hleb Valoshka 29cc9b0ccf Revert "Decrease annotations jittering"
This reverts commit c09672bab3.
2020-06-01 10:36:42 +03:00
Hleb Valoshka ec41cfde60 Refactor TextureFont::render()
1. Don't update ModelView Matrix in TextureFont::render()
  2. Remove variants without offset
2020-06-01 10:35:42 +03:00
Hleb Valoshka 7a062af1ec Optimize sphere rendering using degenerate triangles
Total time to render a 640x480 frame drops from 6.8 ms (6.2 the best case)
to 2.7 ms (2.8 the worst case) (tested on Intel UHD Graphics 620)
2020-05-26 16:09:08 +03:00
Hleb Valoshka cdb7529563 Update translations 2020-05-22 13:33:11 +03:00
Hleb Valoshka c40b186eba Increase galaxy memory chunk to decrease number of draw calls
Total number of draw call goes down from ~7k to ~2k on initial scene
2020-05-22 09:58:42 +03:00
Hleb Valoshka 6b5a004008 Unbind font before restoring matrices in console
Closes: #743
2020-05-18 19:40:00 +03:00
Hleb Valoshka 9966d759c9 Optimize font rendering 2020-05-17 18:40:57 +03:00
Levin Li 91b2cf32eb Update .travis.yml
Update to Xcode 11.4 and use current version of fmt
2020-05-13 08:48:18 +08:00
Hleb Valoshka 54da875bf8 [sdl] Initial implementation of a basic SDL interface 2020-05-12 18:26:27 +03:00
Hleb Valoshka 9863f8bea9 Remove unneeded fixed pipeline wrappers 2020-05-12 15:59:56 +03:00
Hleb Valoshka 1fb1f2de91 Replace fixed function GL code with GL ES compatible one 2020-05-12 15:59:56 +03:00
Hleb Valoshka e9282b9d6d Refactor console and overlay to avoid GL matrices usage 2020-05-12 15:25:52 +03:00
LukeCEL d42862ef84 [tools] Implement spherical option for new star database format in startextdump 2020-05-11 08:18:29 +03:00
Hleb Valoshka a8b6ed4b80 Partially revert 31f28f6 to fix selection pointer rendering 2020-05-07 20:38:55 +03:00
Hleb Valoshka 22c080901b [tools] Don't allocate file streams on the heap 2020-05-07 20:37:26 +03:00
Hleb Valoshka fd79dee429 [tools] Don't create ofstream instances on the heap
Closes: #722
2020-05-06 21:55:02 +03:00
Hleb Valoshka 75922bd0c7 Use glBufferSubData instead of glMapBuffer in CurvePlot 2020-05-06 16:20:44 +03:00
Hleb Valoshka 9abfb5c951 LODSphereMesh compatibility with OpenGL ES and cleanup
Important points:
 * Use glBufferSubData instead of glMapBuffer, because
   - the former is usually faster
   - the latter is not supported by OpenGL ES 2
 * Always use VBO, it should be faster in this usage pattern
 * Remove debug code, I doubt we will ever use it
2020-05-06 16:20:27 +03:00
Levin Li 6d1616c2ca Update .gitignore
ignore auto-generated .DS_Store on Mac
2020-05-06 13:58:21 +08:00
Hleb Valoshka c5e0697a6c [cmake] restore compatibility with older cmake 2020-05-05 16:51:57 +03:00
Hleb Valoshka 7e499f8fd9 Add FramebufferObject::isSupported() 2020-05-05 16:51:57 +03:00
Hleb Valoshka a75312e748 Remove EXT/ARB suffixes
CubeMaps & BGR(A) are core feature in 2.1

FBO variants are handled by libepoxy
2020-05-05 16:51:57 +03:00
Hleb Valoshka ae27c1a1b0 Drop GLEW support 2020-05-05 16:51:57 +03:00
Hleb Valoshka b86c4aba4e Allow absolute paths for fonts 2020-05-05 13:45:28 +03:00
Hleb Valoshka 541e9d78b3 Use custom RenderContext to create shadow map 2020-05-01 23:31:25 +03:00
Hleb Valoshka c26faf70e2 Remove "simple" shaders 2020-04-30 10:23:19 +03:00
Hleb Valoshka daf34b5656 Port to "unlit" lighting model 2020-04-30 10:23:19 +03:00
Hleb Valoshka b781d7a7c8 Add "unlit" shader lighting model 2020-04-30 10:23:19 +03:00
Hleb Valoshka 7d81d26112 Add stellar class WO 2020-04-27 11:49:03 +03:00
Hleb Valoshka 5c6715d148 Refactor a few methods to make them more readable 2020-04-24 09:54:19 +03:00
Hleb Valoshka 7287fb0925 Use already calculated variable 2020-04-24 09:54:19 +03:00
Hleb Valoshka 31f28f6771 Make model & projection matrices float and change their initialization 2020-04-24 09:54:19 +03:00
Hleb Valoshka b651d31928 Change location of some code parts 2020-04-24 09:54:19 +03:00
Hleb Valoshka 1cf5c868cf Remove dead code 2020-04-24 09:54:19 +03:00
Hleb Valoshka b4bab385a0 Use private method instead of passing camera orientation to private methods 2020-04-24 09:54:19 +03:00
Hleb Valoshka 728b384a70 Make smooth line control function private 2020-04-24 09:54:19 +03:00
Hleb Valoshka 898b19a3a6 Fix color of globular markers 2020-04-24 09:54:19 +03:00
Hleb Valoshka 83f1b90397 Move solar system sbjects rendering to own subroutine 2020-04-24 09:54:19 +03:00
Hleb Valoshka 6be2deb920 Rename renderLocations to locationsToAnnotations 2020-04-24 09:54:19 +03:00
Hleb Valoshka 0653b81762 Move depth partitioning to own subroutine 2020-04-24 09:54:19 +03:00