mesh, obj loading, sorting, shitty normals...
[dos_low3d] / src / video.asm
index 2de68eb..5ed2aab 100644 (file)
@@ -60,6 +60,23 @@ close_video_:
        pop ax
        ret
 
+       global vid_setpalent_
+vid_setpalent_:
+       mov ah, dl
+       mov dx, 3c8h
+       out dx, al
+       inc dx
+       mov al, ah
+       shr al, 2
+       out dx, al
+       mov al, bl
+       shr al, 2
+       out dx, al
+       mov al, cl
+       shr al, 2
+       out dx, al
+       ret
+
        ; clear the framebuffer 4 pixels at a time
        global vid_clearfb_
 vid_clearfb_: