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

Hardware info #97

Merged
merged 2 commits into from
Apr 26, 2021
Merged

Hardware info #97

merged 2 commits into from
Apr 26, 2021

Conversation

Rsedaikin
Copy link
Contributor

Getting hardware info (video card, total vram) on Metal, DirectX, OpenGL.

@@ -41,4 +41,10 @@ JNIEXPORT jint JNICALL Java_org_jetbrains_skiko_OpenGLApi_glGetIntegerv(JNIEnv *
return (jint)data;
}

JNIEXPORT jstring JNICALL Java_org_jetbrains_skiko_OpenGLApi_glGetString(JNIEnv * env, jobject object, jint value) {
const char *content = reinterpret_cast<const char *>(glGetString(value));
Copy link
Contributor

Choose a reason for hiding this comment

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

Alignment.

@olonho olonho merged commit 0158424 into master Apr 26, 2021
@olonho olonho deleted the hardware_info branch April 26, 2021 17:09
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