chore: renamed the structs Vec2, Vec3, Vec4, Mat2, Mat3, Mat4, Point2, Point3 to v2, v3, v4, m2, m3, m4, p2, p3

This commit is contained in:
lisk77 2025-04-17 00:54:09 +02:00
parent 982323f671
commit fd8cf1f278
22 changed files with 430 additions and 430 deletions

View file

@ -2,12 +2,12 @@ use comet::prelude::*;
fn setup(app: &mut App, renderer: &mut Renderer2D) {
// Creating a texture atlas from the provided textures in the vector
renderer.set_texture_atlas(vec!["./resources/textures/comet_icon.png".to_string()]);
renderer.set_texture_atlas_by_paths(vec!["./resources/textures/comet_icon.png".to_string()]);
// Creating a camera entity
let cam = app.new_entity();
app.add_component(cam, Transform2D::new());
app.add_component(cam, Camera2D::new(Vec2::new(2.0, 2.0), 1.0, 1));
app.add_component(cam, Camera2D::new(v2::new(2.0, 2.0), 1.0, 1));
// Creating a textured entity
let e0 = app.new_entity();