mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-02 23:50:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@505 b9cfdab3-6d41-4d17-bbe4-086880011989
25 lines
685 B
C
25 lines
685 B
C
/* $Id$ */
|
|
#include "common.h"
|
|
|
|
#include <Mw/Widget/OpenGL.h>
|
|
|
|
MwWidget wWindow, wOpengl;
|
|
MwWidget bPlay, bPause;
|
|
|
|
int main(int argc, char** argv) {
|
|
if(argc != 2) return 1;
|
|
|
|
wWindow = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT, MwDEFAULT, 5 + 640 + 5 + 64 + 5, 5 + 480 + 5,
|
|
MwNtitle, "mpeg player",
|
|
NULL);
|
|
wOpengl = MwCreateWidget(MwOpenGLClass, "opengl", wWindow, 5, 5, 640, 480);
|
|
bPlay = MwVaCreateWidget(MwButtonClass, "play", wWindow, 5 + 640 + 5, 5, 64, 24,
|
|
MwNtext, "Play",
|
|
NULL);
|
|
bPause = MwVaCreateWidget(MwButtonClass, "pause", wWindow, 5 + 640 + 5, 5 + 24 + 5, 64, 24,
|
|
MwNtext, "Pause",
|
|
NULL);
|
|
|
|
MwLoop(wWindow);
|
|
}
|