mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 14:40:49 +00:00
wip
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@505 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
5
examples/mpegplayer/common.h
Normal file
5
examples/mpegplayer/common.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/* $Id$ */
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
extern MwWidget wWindow, wOpengl;
|
||||
extern MwWidget bPlay, bPause;
|
||||
24
examples/mpegplayer/main.c
Normal file
24
examples/mpegplayer/main.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/* $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);
|
||||
}
|
||||
Reference in New Issue
Block a user