Comments (1)
Triangles can be cropped to fit the rectangle. If you are collecting all vertices into batch and drawing them then you can just pass them trough cropping algorithm that will calculate new vertex and texture positions based of view rectangle. Assuming all objects inside ui can be represented by rectangles (AABB) when being drawn.
from coffee.
Related Issues (20)
- error: could not compile `matrixmultiply`. HOT 1
- error: failed to run custom build command for `libudev-sys v0.1.4` HOT 1
- thread 'main' panicked at 'Unable to create Vulkan instance: VkError(ERROR_INCOMPATIBLE_DRIVER)', src/libcore/result.rs:1165 HOT 2
- `coffee::graphics::window::settings::Settings` does not have this field | function or associated item not found in `coffee::load::task::Task<_>` | Coffee Minimal Example HOT 1
- Using Image as tile sheet HOT 1
- Error: WindowCreation("Couldn\'t find any pixel format that matches the criteria.") HOT 4
- Examples crash on Metal HOT 2
- Key repeat behavior on macOS HOT 4
- Trying using my own Renderer but result incompatible type for trait HOT 1
- Where can i "signal" refresh requirement of my widget ?
- Examples only render one frame on ChromeOS and can't interact or close HOT 2
- Wasm support? HOT 1
- Expose more Winit events HOT 1
- Should `Game::load` receive `&mut Window`? (not a duplicate of #130) HOT 1
- Couldn't find any pixel format that matches the criteria on MacOs
- Rendering error HOT 1
- Fedora - Examples not working
- Can coffee run truly headless?
- Anti-Aliasing
- interface 'wl_output' has no event 4 HOT 2
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 coffee.