Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image pathes #90

Merged
merged 8 commits into from
Apr 25, 2016
Merged

Image pathes #90

merged 8 commits into from
Apr 25, 2016

Conversation

rrenderr
Copy link
Contributor

  • added the member filePath to Image class
  • binded gl functions getBufferSubData, getBufferParmeteriv
  • TODO: if window not active then getCurrentContext return nil

Андрей Гутыря added 8 commits April 6, 2016 17:28
- при сборке теперь скитается папка build
- SDLActivity обновлены до последней версии SDL
- binded gl functions getBufferSubData, getBufferParmeteriv
- TODO: if window not active then getCurrentContext return nil
@@ -460,6 +464,26 @@ proc bufferSubData*(gl: GL, target: GLenum, offset: int32, data: openarray[GLush
else:
glBufferSubData(target, offset, GLsizei(data.len * sizeof(GLushort)), cast[pointer](data));

proc getBufferSubData*(gl: GL, target: GLenum, offset: int32, data: var openarray[GLfloat]) {.inline.} =
when defined(js):
asm "`gl`.getBufferSubData(`target`, `offset`, new Float32Array(`data`));"
Copy link
Owner

@yglukhov yglukhov Apr 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert

@yglukhov yglukhov merged commit 84cf352 into yglukhov:master Apr 25, 2016
@rrenderr rrenderr deleted the ImagePathes branch April 26, 2016 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants