Jump to content
  • Sign Up

Rainb0wSkeppy

Member
  • Content Count

    8
  • Joined

  • Last visited

  • Days Won

    1

Rainb0wSkeppy last won the day on October 24 2023

Rainb0wSkeppy had the most liked content!

Community Reputation

4 Up-and-coming

1 Follower

Recent Profile Visitors

934 profile views
  1. /physics 3 (please dont ban me for 1 word post)
  2. the problem was that i needed 4 vertices also i managed to get this
  3. im trying to draw something but its not working i checked that these functions are getting called void myscreen_render(void* elem, float delta) { struct f3_screen* s = elem; Gfx_SetVertexFormat(VERTEX_FORMAT_COLOURED); Gfx_BindDynamicVb(s -> vb); Gfx_DrawVb_IndexedTris(3); } void myscreen_build_mesh(void* elem) { struct f3_screen* s = elem; struct VertexColoured vb[3]; vb[0].x = 0.0f; vb[0].y = 0.0f; vb[0].z = 1.0f; vb[1].x = 1.0f; vb[1].y = 0.0f; vb[1].z = 1.0f; vb[2].x = 0.0f; vb[2].y = 1.0f; vb[2].z = 1.0f; vb[0].Col = PackedCol_Make(255, 0, 0, 255); vb[1].Col = PackedCol_Make(0, 255, 0, 255); vb[2].Col = PackedCol_Make(0, 0, 255, 255); Gfx_SetVertexFormat(VERTEX_FORMAT_COLOURED); Gfx_SetDynamicVbData(s -> vb, vb, 3); } void myscreen_on_context_lost(void* elem) { struct f3_screen* s = elem; Gfx_DeleteDynamicVb(&s -> vb); } void myscreen_on_context_recreated(void* elem) { struct f3_screen* s = elem; s -> vb = Gfx_CreateDynamicVb(VERTEX_FORMAT_COLOURED, 3); s -> maxVertices = 3; }
  4. hp laptop 15-da1xxx processor: intel(r) core(tm) i5-8265u cpu @ 1.60ghz (8 cpus), ~1.8ghz ram: 8gb graphics card: intel(r) uhd graphics 620 ssd: some 256gb ssd monitor: built in display 1920x1080
×
×
  • Create New...