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

TexSubImage2D for pointer/IntPtr? #201

Open
tqk2811 opened this issue Aug 22, 2021 · 0 comments
Open

TexSubImage2D for pointer/IntPtr? #201

tqk2811 opened this issue Aug 22, 2021 · 0 comments

Comments

@tqk2811
Copy link

tqk2811 commented Aug 22, 2021

gl.TexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
          i == 0 ? temp_frame->width : temp_frame->width / 2,
          i == 0 ? temp_frame->height : temp_frame->height / 2,
          GL_RED, GL_UNSIGNED_BYTE, 
          (IntPtr)(temp_frame->data[i]));// only allow int[]

Hi, i'm new on OpenGl. Is there way to use TexSubImage2D without using managed array? Thanks!
Note: temp_frame is AVFrame* from ffmpeg

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

No branches or pull requests

1 participant