Crates.io | cat_engine_basement |
lib.rs | cat_engine_basement |
version | 0.0.0-alpha7 |
source | src |
created_at | 2021-07-20 09:23:00.620824 |
updated_at | 2021-10-28 12:18:53.42126 |
description | The CatEnigne's basement |
homepage | https://github.com/Clomance/CatEngine |
repository | https://github.com/Clomance/CatEngine |
max_upload_size | |
id | 425052 |
size | 575,831 |
There are some levels of wrapping:
WinCore
and GLCore
) let mut id:u32=MaybeUninit::uninit().assume_init();
GLCore.buffer.generate_one(&mut id);
GLCore.buffer.bind(BufferTarget::ArrayBuffer,id);
GLCore.buffer.rewrite(BufferTarget::ArrayBuffer,1024,core::ptr::null(),BufferUsage::DynamicDraw);
GLCore
), the higher level the more specific structures // level0
let buffer:Buffer<i32>=Buffer::generate();
buffer.bind(BufferTarget::ArrayBuffer).unwrap();
Buffer::rewrite(BufferTarget::ArrayBuffer,&[0u32;10],BufferUsage::DynamicDraw).unwrap();
// level1
let index_buffer=IndexBuffer::new(&[0u32;10],BufferUsage::DynamicDraw).unwrap();
windows
module) let class_attributes=WindowClassAttributes::new("WNDCLASS");
let window_class=WindowClass::new(class_attributes).unwrap();
Compatible with OpenGL 3.3 and greater.