Skip to content

Instantly share code, notes, and snippets.

View tpdns90321's full-sized avatar

kang tpdns90321

  • Korean, gimpo city, geongido
View GitHub Profile
@tpdns90321
tpdns90321 / OpenGL_SDL2_test.cpp
Created February 11, 2015 04:43
SDL2_Opengl Example
#include<SDL2/SDL.h>
#include<SDL2/SDL_opengl.h>
#include<GL/glut.h>
int main(){
//Create window
SDL_Window *window = SDL_CreateWindow("Test",SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED,640,480,SDL_WINDOW_OPENGL);
//OpenGL Init
SDL_GLContext context = SDL_GL_CreateContext(window);
glMatrixMode(GL_MODELVIEW);
@tpdns90321
tpdns90321 / bluetooth.py
Last active August 29, 2015 14:13 — forked from tito/bluetooth.py
'''
Bluetooth/Pyjnius example
=========================
This was used to send some bytes to an arduino via bluetooth.
The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't
tested without BLUETOOTH_ADMIN, maybe it works.)
Connect your device to your phone, via the bluetooth menu. After the
pairing is done, you'll be able to use it in the app.