mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Format Capture.pb
This commit is contained in:
parent
15e2b88ed5
commit
d9d8c9cd78
@ -1,4 +1,4 @@
|
|||||||
; Copyright (c) 2019-2023 David Vogel
|
; Copyright (c) 2019-2024 David Vogel
|
||||||
;
|
;
|
||||||
; This software is released under the MIT License.
|
; This software is released under the MIT License.
|
||||||
; https://opensource.org/licenses/MIT
|
; https://opensource.org/licenses/MIT
|
||||||
@ -137,10 +137,10 @@ ProcedureDLL Capture(*capRect.RECT, x.l, y.l, sx.l, sy.l)
|
|||||||
*pixelBuffer = DrawingBuffer()
|
*pixelBuffer = DrawingBuffer()
|
||||||
glReadPixels_(*capRect\left, *capRect\top, capWidth, capHeight, #GL_BGR_EXT, #GL_UNSIGNED_BYTE, *pixelBuffer)
|
glReadPixels_(*capRect\left, *capRect\top, capWidth, capHeight, #GL_BGR_EXT, #GL_UNSIGNED_BYTE, *pixelBuffer)
|
||||||
|
|
||||||
;For y = 0 To *capRect\height - 1
|
; For y = 0 To *capRect\height - 1
|
||||||
; *Line.Pixel = Buffer + Pitch * y
|
; *Line.Pixel = Buffer + Pitch * y
|
||||||
;
|
;
|
||||||
; For x = 0 To *capRect\width - 1
|
; For x = 0 To *capRect\width - 1
|
||||||
;
|
;
|
||||||
; *Line\Pixel = ColorTable(pos2) ; Write the pixel directly to the memory !
|
; *Line\Pixel = ColorTable(pos2) ; Write the pixel directly to the memory !
|
||||||
; *Line+Offset
|
; *Line+Offset
|
||||||
|
Loading…
Reference in New Issue
Block a user