mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-23 20:59:58 +01:00
32 lines
418 B
C
32 lines
418 B
C
#include <stdio.h>
|
|
#define S3L_PIXEL_FUNCTION pixelFunc
|
|
#include "s3l.h"
|
|
|
|
void pixelFunc(S3L_PixelInfo *pixel)
|
|
{
|
|
}
|
|
|
|
int main()
|
|
{
|
|
S3L_Mat4 m, m2;
|
|
S3L_Vec4 v;
|
|
|
|
S3L_initMat4(&m);
|
|
S3L_writeMat4(m);
|
|
|
|
S3L_initVec4(&v);
|
|
|
|
S3L_writeVec4(v);
|
|
|
|
S3L_vec4Xmat4(&v,&m);
|
|
S3L_writeVec4(v);
|
|
|
|
S3L_makeTranslationMat(100,200,300,&m2);
|
|
S3L_writeMat4(m2);
|
|
|
|
S3L_mat4Xmat4(&m,&m2);
|
|
S3L_writeMat4(m);
|
|
|
|
|
|
return 0;
|
|
}
|