Skip to content

Commit

Permalink
turn Int into an UnsafePointer<Void>.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guang1234567 committed Mar 30, 2020
1 parent fe46199 commit f90ab80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/SGLEGL/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ public let EGL_FALSE = EGLint(0x0000)
public let EGL_DONT_CARE = EGLint(0x0000)
public let EGL_UNKNOWN = EGLint(0x0000)
public let EGL_DEPTH_ENCODING_NONE_NV = EGLint(0x0000)
public let EGL_NO_CONTEXT = EGLContext(0x0000)
public let EGL_NO_CONTEXT: EGLContext = nil /*EGLContext(bitPattern: 0x0000)*/
public let EGL_NO_DEVICE_EXT = EGLint(0x0000)
public let EGL_NO_DISPLAY = EGLDisplay(0x0000)
public let EGL_NO_DISPLAY: EGLDisplay = nil /*EGLDisplay(bitPattern: 0x0000)*/
public let EGL_NO_IMAGE = EGLint(0x0000)
public let EGL_NO_IMAGE_KHR = EGLint(0x0000)
public let EGL_DEFAULT_DISPLAY = EGLNativeDisplayType(0x0000)
public let EGL_DEFAULT_DISPLAY: EGLNativeDisplayType = nil /*EGLNativeDisplayType(bitPattern: 0x0000)*/
public let EGL_NO_FILE_DESCRIPTOR_KHR = EGLint(0x0000)
public let EGL_NO_OUTPUT_LAYER_EXT = EGLint(0x0000)
public let EGL_NO_OUTPUT_PORT_EXT = EGLint(0x0000)
public let EGL_NO_STREAM_KHR = EGLint(0x0000)
public let EGL_NO_SURFACE = EGLSurface(0x0000)
public let EGL_NO_SURFACE: EGLSurface = nil /*EGLSurface(bitPattern: 0x0000)*/
public let EGL_NO_SYNC = EGLint(0x0000)
public let EGL_NO_SYNC_KHR = EGLint(0x0000)
public let EGL_NO_SYNC_NV = EGLint(0x0000)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SGLEGL/SwiftEGL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.


public typealias EGLVoidPointer = Int
public typealias EGLVoidPointer = UnsafeMutableRawPointer?

#if os(Android)

Expand Down

0 comments on commit f90ab80

Please sign in to comment.