dwmkerr / dwmkerr/sharpgl

TexSubImage2D for pointer/IntPtr?

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
804
Forks
294
Avg merge
3d 23h
Merged PRs (30d)
1

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.