ec- / Quake3e

Improved Quake III Arena engine
GNU General Public License v2.0
1.21k stars 154 forks source link

win arm32 compiling #290

Open wmjb opened 4 months ago

wmjb commented 4 months ago

trying to compile for win arm 32 bit, only problem i've got is the following function in common.c

void Sys_SnapVector(float* vector) { vector[0] = rint(vector[0]); vector[1] = rint(vector[1]); vector[2] = rint(vector[2]); }

any idea what would be the equivalent for #if arm32 ?

if i just copy the arm64 function, everything build and runs just crashes on launching a match.. i'm not sure if this is the issue.

many thanks.

wmjb commented 4 months ago

looks like the problem is with the opengl32.dll.

ensiform commented 4 months ago

What devices are arm 32 bit supporting Windows? If Windows arm 32 doesn't properly support opengl (not opengles) you may not be able to get far.

wmjb commented 4 months ago

microsoft surface 1 and 2, windows 10. we use gldirect5 which gives opengl 1.1 over dx9. ioq3 builds and runs fine.

ensiform commented 4 months ago

The codebase does not have arm32 project or defines for windows currently but it could be added it looks like