Skip to content

Commit

Permalink
add correct alias for BufferDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonplussed committed Jun 13, 2015
1 parent a4dd0c4 commit dbdceb9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
1 change: 1 addition & 0 deletions generator/IDL/Cleaner.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import IDL.AST
excludedTypes :: [String]
excludedTypes =
[ "ArrayBuffer"
, "BufferDataSource"
, "DOMString"
, "Float32Array"
, "FloatArray"
Expand Down
33 changes: 17 additions & 16 deletions generator/IDL/Printer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,23 @@ generatedWarning = vcat

typeDefs :: Doc
typeDefs = vcat
[ "type DOMString = String"
, "type FloatArray = Float32Array"
, "type GLbitfield = Number"
, "type GLboolean = Boolean"
, "type GLbyte = Number"
, "type GLclampf = Number"
, "type GLenum = Number"
, "type GLfloat = Number"
, "type GLint = Number"
, "type GLintptr = Number"
, "type GLshort = Number"
, "type GLsizei = Number"
, "type GLsizeiptr = Number"
, "type GLubyte = Number"
, "type GLuint = Number"
, "type GLushort = Number"
[ "type DOMString = String"
, "type BufferDataSource = Float32Array"
, "type FloatArray = Float32Array"
, "type GLbitfield = Number"
, "type GLboolean = Boolean"
, "type GLbyte = Number"
, "type GLclampf = Number"
, "type GLenum = Number"
, "type GLfloat = Number"
, "type GLint = Number"
, "type GLintptr = Number"
, "type GLshort = Number"
, "type GLsizei = Number"
, "type GLsizeiptr = Number"
, "type GLubyte = Number"
, "type GLuint = Number"
, "type GLushort = Number"
]

contextAttrs :: Doc
Expand Down
34 changes: 17 additions & 17 deletions src/Graphics/WebGL/Raw/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ module Graphics.WebGL.Raw.Types where

import Data.ArrayBuffer.Types

type DOMString = String
type FloatArray = Float32Array
type GLbitfield = Number
type GLboolean = Boolean
type GLbyte = Number
type GLclampf = Number
type GLenum = Number
type GLfloat = Number
type GLint = Number
type GLintptr = Number
type GLshort = Number
type GLsizei = Number
type GLsizeiptr = Number
type GLubyte = Number
type GLuint = Number
type GLushort = Number
type DOMString = String
type BufferDataSource = Float32Array
type FloatArray = Float32Array
type GLbitfield = Number
type GLboolean = Boolean
type GLbyte = Number
type GLclampf = Number
type GLenum = Number
type GLfloat = Number
type GLint = Number
type GLintptr = Number
type GLshort = Number
type GLsizei = Number
type GLsizeiptr = Number
type GLubyte = Number
type GLuint = Number
type GLushort = Number

foreign import data ArrayBufferView :: *
foreign import data BufferDataSource :: *
foreign import data TexImageSource :: *
foreign import data WebGLActiveInfo :: *
foreign import data WebGLBuffer :: *
Expand Down

0 comments on commit dbdceb9

Please sign in to comment.