brendanzab / gl-rs

An OpenGL function pointer loader for Rust
Apache License 2.0
678 stars 117 forks source link

glOrtho #538

Open XaDanX opened 2 years ago

XaDanX commented 2 years ago

Is there any alternative to glOrtho? because i cant find this function in this library :(

cdecompilador commented 1 year ago

Thats a legacy function and is deprecated, to use it you have to create a context for Opengl 1.x, 2.x and generate the bindings for that specific version, here is an example, look at the build.rs and how it creates the context https://github.com/arnodb/torus_trooper_rs