Comments (1)
I think we can get away with having the full GlType
image that has a default()
constructor (implementing Default
feature), which defaults to the platform GL (like it does now, but in compile time).
So,
#[derive(Debug, PartialEq)]
pub enum GlType {
Gl,
Gles,
}
impl Default for GlType {
#[cfg(target_os="android")]
fn default() -> GlType {
GlType::Gles
}
#[cfg(not(target_os="android"))]
fn default() -> GlType {
GlType::Gl
}
}
from gleam.
Related Issues (20)
- Revive link to GL library. HOT 1
- load_with functions should be unsafe HOT 1
- Gl::buffer_data_untyped should be unsafe
- GL_OES_EGL_image_external support HOT 2
- Protect master branch HOT 1
- Implement glDrawBuffers/GL::draw_buffers Binding HOT 1
- get_integer_v/get_integer_64v/get_integer_iv/get_integer_64iv/get_boolean_v/get_float_v are memory unsafe HOT 1
- Rename viewport to set_viewport and get_viewport to viewport HOT 2
- get_program_iv is memory unsafe with GL_COMPUTE_WORK_GROUP_SIZE
- get_vertex_attrib_iv is memory unsafe with GL_CURRENT_VERTEX_ATTRIB
- get_shader_info_log truncates logs at 1024 characters
- get_program_info_log truncates log at 1024 characters
- Add mode that asserts when glGetError returns non-zero after any GL call HOT 1
- Reduce duplicated code between GLES and GL
- Stack overflow during compilation HOT 3
- Add newtypes for different resources
- glCopyBufferSubData missing? HOT 1
- Please make a version break every time you add functions to the `Gl` trait HOT 3
- 0.13.2 has semver breaking-changes HOT 3
- declare_gl_apis! macros doesn't allow us to add default function implementations
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 gleam.