-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9 Create a Complete New Architecture #10
base: main
Are you sure you want to change the base?
Conversation
docs(.github): put the correct name of the project
…fast flag in Libs's makefile
12 Implement Laplace Library
13 Implement Laplace Launcher
…gement 17 Implement a Version Management
feat(Engine): Clock, Window, Config, Math and Engine module implemented
667dbe7
to
b4a1296
Compare
.github/workflows/create-release.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not tested
.github/workflows/update_readme.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not tested
CHANGELOG.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to be fill with the content of the Engine-3D version 0.1.0
85c95fb
to
7b23dda
Compare
a36c45f
to
3be09a5
Compare
3be09a5
to
7b23dda
Compare
…e-new-architecture fix(libs): fix build error
matrix4f matrix4_f_mul(matrix4f m, matrix4f n) | ||
{ | ||
matrix4f o = MATRIX4F_DEFAULT; | ||
|
||
for (unsigned i = 0; i < 4; i++) | ||
for (unsigned j = 0; j < 4; j++) | ||
for (unsigned k = 0; k < 4; k++) | ||
o.m[i][j] += m.m[i][k] * n.m[k][j]; | ||
|
||
return o; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are doing a lot of matrix computation, it may be worth taking a look at a faster algorithm, here is a nice resource
int main(int ac, const char *av[]) { | ||
#endif | ||
// Initialize the game engine and its components. | ||
if (ac != 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ac
is undefined in windows context?
|
||
#ifndef LAPLACE_LIB_H_ | ||
#define LAPLACE_LIB_H_ | ||
#define auto_clean __attribute__((cleanup(laplace_lib_free))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't auto_clean only supported by GCC?
//////////////////////////////////////////////////////////// | ||
// Define the LAPLACE_LIB version string | ||
//////////////////////////////////////////////////////////// | ||
#define LAPLACE_LIB_VERSION_STRING "1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the glue operator to build the library version string
#define LAPLACE_LIB_VERSION_STRING "1.0.0" | |
#define CAT(x) #x | |
#define XCAT(x) CAT(x) | |
#define LAPLACE_LIB_VERSION_STR \ | |
XCAT(LAPLACE_LIB_VERSION_MAJOR) \ | |
"." XCAT(LAPLACE_LIB_VERSION_MINOR) \ | |
"." XCAT(LAPLACE_LIB_VERSION_PATCH) |
|
||
inline int laplace_lib_open_file(char const *filepath, unsigned oflag) | ||
{ | ||
int fd = open(filepath, oflag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the file descriptor should be checker prior to the access call
} link_t; | ||
|
||
//* It creates a link with the object passed in parameter. | ||
extern link_t *laplace_link_create(void *_new); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are they marked as external symbols?
Acceptance criteria