Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | GraphUI: Fix debug-box and allow API access in Shape (off, thickness ↵ | Sven Gothel | 2023-03-30 | 7 | -34/+79 | |
| | | | | fractional to box size) and Scene for all Shapes. | |||||
* | GraphUI Demos: Cover more std arguments via GraphUIDemoArgs | Sven Gothel | 2023-03-30 | 3 | -104/+53 | |
| | ||||||
* | Graph GLSL: Enable 'discard' in fragment shader w/o ↵ | Sven Gothel | 2023-03-30 | 14 | -55/+64 | |
| | | | | | | | | | GLRendererQuirks.GLSLBuggyDiscard to avoid overdraw of such regions. Historically we disabled `discard` due to an old NV tegra2 compiler bug, which caused the compiler to freeze. Today we no more seem to have this GLSL compiler issue, i.e. GLRendererQuirks.GLSLBuggyDiscard never gets set. | |||||
* | GraphUI Demo: UISceneDemo20 use Scene.screenshot(..), drop own code | Sven Gothel | 2023-03-30 | 1 | -31/+3 | |
| | ||||||
* | GraphUI Demo UISceneDemo03: Add 1 space padding to demo-text, make ↵ | Sven Gothel | 2023-03-30 | 1 | -10/+36 | |
| | | | | screenshots, add launch screen (visible @ '-wait') | |||||
* | GraphUI Scene: Add screenshot(..) method for convenience | Sven Gothel | 2023-03-30 | 1 | -4/+37 | |
| | ||||||
* | GraphUI: Add GlyphShape representing a single Font.Glyph as a GraphShape; ↵ | Sven Gothel | 2023-03-30 | 4 | -114/+417 | |
| | | | | | | | | | | | | | | | | | | Use w/ UISceneDemo03 Type Animation... A list of GlyphShape can be created via GlyphShape.processString(..), which preserves all details incl. intended original unscaled position and its kerning. Whitespace or contourless Glyphs are dropped. A GlyphShape is represented in font em-size [0..1] unscaled. +++ UISceneDemo03 Type Animation - Using GlyphShape and apply scaling via its Shape.setScale() - Recalc fontScale per used text - Refined 'arrival' criteria and smoothing out near target w/ speed-up rotation - Using GraphUIDemoArgs to parse common commandline demo options | |||||
* | GraphUI Shape.setTransform(..): Scale before rotate to preserve target-size ↵ | Sven Gothel | 2023-03-30 | 1 | -14/+14 | |
| | | | | in rotation | |||||
* | GraphUI Shape: Refine API doc | Sven Gothel | 2023-03-30 | 1 | -8/+8 | |
| | ||||||
* | Graph*: API doc refinement | Sven Gothel | 2023-03-30 | 2 | -1/+8 | |
| | ||||||
* | Vec2f, Vec3f: Return this @ set(..), add set(float[]) and add(float, ..) | Sven Gothel | 2023-03-30 | 2 | -22/+60 | |
| | ||||||
* | GraphUI Shape: Rename rotOrigin -> rotPivot | Sven Gothel | 2023-03-28 | 1 | -18/+18 | |
| | ||||||
* | GraphUI Shape.setTransform(): Fix !sameScaleRotatePivot && hasRotate && ↵ | Sven Gothel | 2023-03-28 | 1 | -2/+2 | |
| | | | | | | !hasRotPivot: Don't scale pivot back from center-pivot, same as w/ hasRotPivot A copy & paste bug .. | |||||
* | GraphUI Scene: Added API doc args | Sven Gothel | 2023-03-28 | 1 | -6/+6 | |
| | ||||||
* | Graph Font: TypecastFont: getGlyphBoundsFU() + processString(): If ↵ | Sven Gothel | 2023-03-28 | 1 | -4/+6 | |
| | | | | isWhitespace() continue w/ AABBox resize, but don't earmark this (whitespace) glyph for next left_glyph (kerning). | |||||
* | GraphUI Demo UISceneDemo03: Add kerning and compensate on label 0/0 origin ↵ | Sven Gothel | 2023-03-28 | 1 | -8/+22 | |
| | | | | using Glyph bounds minY() | |||||
* | GraphUI Demo UISceneDemo02: Use em-sized label w/ scale. | Sven Gothel | 2023-03-28 | 1 | -8/+8 | |
| | ||||||
* | GraphUI: Decouple GraphShape from Shape, i.e. allow future Shape w/o ↵ | Sven Gothel | 2023-03-28 | 18 | -303/+465 | |
| | | | | Graph/GLRegion | |||||
* | GraphUI Button: Simplify addShapeToRegion() | Sven Gothel | 2023-03-28 | 2 | -15/+15 | |
| | ||||||
* | GraphUI Label: Add getScaledLineHeight() and refine setFontScale(), i.e. ↵ | Sven Gothel | 2023-03-28 | 1 | -3/+21 | |
| | | | | only act and markDirty() on change | |||||
* | GraphUI Label: Remove glyphVisitor's debug code (exception handling) | Sven Gothel | 2023-03-28 | 1 | -10/+2 | |
| | ||||||
* | GraphUI: Label: Enforce bottom-left origin @ 0/0 for good drag-zoom ↵ | Sven Gothel | 2023-03-28 | 1 | -3/+4 | |
| | | | | experience (working sticky edge) | |||||
* | GraphUI: Shape: Fix setTransform(): Scale around center and rotate around ↵ | Sven Gothel | 2023-03-28 | 1 | -26/+40 | |
| | | | | pivot-point or center; Assume Shape origin to be bottom-left for drag-zoom. Removes questionable scale-hack. | |||||
* | GraphUI: Shape.dispatchMouseEvent(): Rename dsx/dsxy -> sx/sy as they ↵ | Sven Gothel | 2023-03-28 | 1 | -7/+7 | |
| | | | | denominate whole scale-factor, not their delta | |||||
* | Graph RenderState: Add setColorStatic(float[]) variant | Sven Gothel | 2023-03-28 | 1 | -0/+3 | |
| | ||||||
* | Graph Font.GlyphVisitor*: Pass 'char symbol' to visitor, passing full ↵ | Sven Gothel | 2023-03-28 | 5 | -11/+12 | |
| | | | | text-processing information | |||||
* | Graph Font.Glyph: Add getFont() (the owner) | Sven Gothel | 2023-03-28 | 2 | -0/+8 | |
| | ||||||
* | GraphUI Demos: Remove unused GPUUISceneTextAnim01 | Sven Gothel | 2023-03-28 | 1 | -303/+0 | |
| | ||||||
* | Graph FontScale: Simplify names, fix API doc and add unit test | Sven Gothel | 2023-03-28 | 11 | -36/+173 | |
| | ||||||
* | Graph Font: Rename getBBox*() -> getBounds*() to preserve a common semantic name | Sven Gothel | 2023-03-27 | 6 | -17/+17 | |
| | ||||||
* | Graph: Fix Font.getGlyphBoundsFU(): FU of advance is requested here. | Sven Gothel | 2023-03-27 | 1 | -1/+1 | |
| | | | | Regression from commit a5d593478afa2298282a0624b2490fde84c3a292 | |||||
* | Quaternion: Shorten toString() type name | Sven Gothel | 2023-03-27 | 1 | -1/+2 | |
| | ||||||
* | GraphUI Demos: (Text) Type Animation ... | Sven Gothel | 2023-03-22 | 2 | -0/+697 | |
| | ||||||
* | UISceneDemo0[01]: Useless minor editing (can't move animator lower as sadly ↵ | Sven Gothel | 2023-03-22 | 2 | -2/+1 | |
| | | | | used in our window dtor event handler) | |||||
* | Add Vec2f and Vec3f, to support a more simple OO vector-math usage, e.g. for ↵ | Sven Gothel | 2023-03-22 | 2 | -0/+528 | |
| | | | | | | | | animation etc Implementation borrowed my 'gfxbox2' C++ project <https://jausoft.com/cgit/cs_class/gfxbox2.git/tree/include/pixel/pixel3f.hpp#n29> and its layout from OpenAL's Vec3f. | |||||
* | Graph: Remove OutlineShape.Visitor* as being replaced by Font.GlyphVisitor | Sven Gothel | 2023-03-22 | 2 | -24/+1 | |
| | | | | (We may ressurect them if needed for a future use case) | |||||
* | Graph Font Processing: Use Font.GlyphVisitor instead of ↵ | Sven Gothel | 2023-03-22 | 7 | -35/+90 | |
| | | | | OutlineShape.Visitor, allowing to use the Glyph (information). | |||||
* | Graph Font Processing: Produce a 'whitespace' Glyph w/ an OutlineShape (box) ↵ | Sven Gothel | 2023-03-22 | 3 | -5/+76 | |
| | | | | to allow better handling of such non-contour symbols. | |||||
* | GraphUI Demos: Adopt to shapesSharpness -> oshapesSharpness rename | Sven Gothel | 2023-03-22 | 7 | -7/+7 | |
| | ||||||
* | GraphUI Shape: Make access private where possible & reasonable, synchronize ↵ | Sven Gothel | 2023-03-22 | 6 | -42/+55 | |
| | | | | dirty and in draw(..) the whole dirty-validate() region.draw() | |||||
* | GraphUI Scene: getStatusText(..) drop unset values, be more semantic ↵ | Sven Gothel | 2023-03-22 | 1 | -5/+19 | |
| | | | | sensitive (msaa -> smsaa) | |||||
* | GraphUI Scene: Add removeShape*(GL2ES2..) variant w/ their destruction for ↵ | Sven Gothel | 2023-03-22 | 1 | -4/+18 | |
| | | | | convenience | |||||
* | GraphUI Scene: Add optional frustum culling (default: disabled) | Sven Gothel | 2023-03-22 | 1 | -13/+23 | |
| | ||||||
* | GraphUI Shape.setTransform(): Remove 'wiggling' w/ origin, text issue came ↵ | Sven Gothel | 2023-03-21 | 1 | -12/+4 | |
| | | | | | | from Scene.PMVMatrixSetup bug, all shapes resize fine now. Scene.PMVMatrixSetup bug missed modelview initialition before gluUnProject(), fixed in commit 74e11bd9a49f61e49d3c73c4f9b87b4fb7fbaaf3. | |||||
* | GraphUI: Fix Scene.PMVMatrixSetup impl: Setup modelview before using ↵ | Sven Gothel | 2023-03-21 | 3 | -6/+12 | |
| | | | | setPlanBox(..)'s gluUnProject(..) | |||||
* | GraphUI Scene: Move reshape() below init from in-between display() impls | Sven Gothel | 2023-03-21 | 1 | -19/+19 | |
| | ||||||
* | GraphUI UISceneDemo20: Consolidate the actual implementation and main ↵ | Sven Gothel | 2023-03-21 | 4 | -229/+197 | |
| | | | | launcher to our new UISceneDemo naming series | |||||
* | GraphUI UISceneDemo*: Stop animation loop if window got destroyed | Sven Gothel | 2023-03-21 | 2 | -4/+4 | |
| | ||||||
* | NEWTEvent*.getEventTypeString(): Like MouseEvent, drop redundant leading ↵ | Sven Gothel | 2023-03-21 | 3 | -11/+11 | |
| | | | | type in returned string | |||||
* | GraphUI UISceneDemo*: Add windowResized() callback to update window title ↵ | Sven Gothel | 2023-03-21 | 3 | -5/+12 | |
| | | | | showing current surfaceSize |