This commit is contained in:
Nishi 2026-01-12 05:33:04 +09:00
commit a310325a61
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 15 additions and 15 deletions

View file

@ -7,10 +7,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <math.h> #include <math.h>
#ifdef _GEARSRC
#include <gbnet.h>
#endif
#if defined(_GEARSRC) && defined(_WIN32) #if defined(_GEARSRC) && defined(_WIN32)
#define GSDECL extern __declspec(dllexport) #define GSDECL extern __declspec(dllexport)
#elif defined(_WIN32) #elif defined(_WIN32)

View file

@ -4,15 +4,15 @@
#include <GearSrc/MachDep.h> #include <GearSrc/MachDep.h>
#if defined(_MSC_VER) || defined(__WATCOMC__) #if defined(_MSC_VER) || defined(__WATCOMC__)
typedef __int8_t GSI8; typedef __int8 GSI8;
typedef __int16_t GSI16; typedef __int16 GSI16;
typedef __int32_t GSI32; typedef __int32 GSI32;
typedef __int64_t GSI64; typedef __int64 GSI64;
typedef unsigned __int8_t GSU8; typedef unsigned __int8 GSU8;
typedef unsigned __int16_t GSU16; typedef unsigned __int16 GSU16;
typedef unsigned __int32_t GSU32; typedef unsigned __int32 GSU32;
typedef unsigned __int64_t GSU64; typedef unsigned __int64 GSU64;
#elif __STDC_VERSION__ >= 199901L #elif __STDC_VERSION__ >= 199901L
#include <stdint.h> #include <stdint.h>

View file

@ -46,6 +46,8 @@ static void scene(GSClient client) {
} }
void GSClientStep(GSClient client) { void GSClientStep(GSClient client) {
static double r = 0;
GSGLClear(client->gl); GSGLClear(client->gl);
GSGLCameraSetup(client->gl); GSGLCameraSetup(client->gl);
GSGLSetLight(client->gl); GSGLSetLight(client->gl);
@ -61,8 +63,6 @@ void GSClientStep(GSClient client) {
client->engine->param->gl_swapbuffer(); client->engine->param->gl_swapbuffer();
static double r = 0;
client->look_at[0] = 5 + cos(r) * 5; client->look_at[0] = 5 + cos(r) * 5;
client->look_at[2] = 5 + sin(r) * 5; client->look_at[2] = 5 + sin(r) * 5;

View file

@ -66,7 +66,11 @@ int GSFileRead(GSFile file, void* out, int size) {
memcpy(out, file->data + file->seek, len); memcpy(out, file->data + file->seek, len);
file->seek += len; file->seek += len;
return len;
} }
return 0;
} }
void GSFileSeek(GSFile file, int pos) { void GSFileSeek(GSFile file, int pos) {