Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P project03
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs3-24sp
  • project03
  • Merge requests
  • !1

An error occurred while fetching the assigned milestone of the selected merge_request.
Open
Created 1 year ago by Eshani J. Patel@ejpatelOwner
  • Report abuse
Report abuse

Fix list.wasm.ref.o

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 6
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    a920818f
    1 commit, 1 year ago

6 files
+ 4
- 5

    Preferences

    File browser
    Compare changes
inc‎lude‎
bod‎y.h‎ +3 -4
lib‎rary‎
sdl_wr‎apper.c‎ +1 -1
r‎ef‎
body.wa‎sm.ref.o‎ +0 -0
list.wa‎sm.ref.o‎ +0 -0
polygon.w‎asm.ref.o‎ +0 -0
sdl_wrapper‎.wasm.ref.o‎ +0 -0
include/body.h
+ 3
- 4
  • View file @ a920818f

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
* Returns a newly allocated vector list, which must be list_free()d.
*
* @param body a pointer to a body returned from body_init()
* @return the polygon describing the body's current position
* @return the list of points describing the body's current position
*/
list_t *body_get_shape(body_t *body);
Show 20 lines Show all unchanged lines Show 20 lines
void body_set_rotation(body_t *body, double angle);
/**
* Moves a body at its current velocity over a given time interval based total
* force acting upon body.
* Translates a body based on its current velocity over a given time interval.
*
* @param body the body to tick
* @param dt the number of seconds elapsed since the last tick
Show 20 lines Show all unchanged lines Show 20 lines
*/
double body_get_mass(body_t *body);
#endif // #ifndef __BODY_H__
\ No newline at end of file
#endif // #ifndef __BODY_H__
library/sdl_wrapper.c
+ 1
- 1
  • View file @ a920818f

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
body_t *body = scene_get_body(scene, i);
list_t *shape = body_get_shape(body);
polygon_t *poly =
polygon_init(shape, (vector_t){0, 0}, (vector_t){0, 0}, 0, 0, 0, 0);
polygon_init(shape, (vector_t){0, 0}, 0, 0, 0, 0);
sdl_draw_polygon(poly, body_get_color(body));
list_free(shape);
}
Show 20 lines Show all unchanged lines
ref/body.wasm.ref.o
+ 0
- 0
  • View file @ a920818f

No preview for this file type
ref/list.wasm.ref.o
+ 0
- 0
  • View file @ a920818f

No preview for this file type
ref/polygon.wasm.ref.o
+ 0
- 0
  • View file @ a920818f

No preview for this file type
ref/sdl_wrapper.wasm.ref.o
+ 0
- 0
  • View file @ a920818f

No preview for this file type
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: ref_fix

Menu

Projects Groups Snippets
Help