git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@505 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-29 21:44:51 +00:00
parent a9263fe8b5
commit 1e11963ff4
21 changed files with 101515 additions and 25 deletions

View File

@@ -0,0 +1,5 @@
/* $Id$ */
#include <Mw/Milsko.h>
extern MwWidget wWindow, wOpengl;
extern MwWidget bPlay, bPause;

View 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);
}