Changeset c0a1dbea40aa511d41f644c0d19b51fffc384a5a
- Timestamp:
- 07/20/04 22:25:25
(4 years ago)
- Author:
- Cyril Deguet <asmax@videolan.org>
- git-committer:
- Cyril Deguet <asmax@videolan.org> 1090355125 +0000
- git-parent:
[3c3996cccb591768d9fc8d4bc1e0e728ed6df8cf]
- git-author:
- Cyril Deguet <asmax@videolan.org> 1090355125 +0000
- Message:
- modules/video_output/x11/glx.c: new OpenGL vout for X11.
TODO: - factorization with xcommon.c
- factorization with glx.c in GaLaktos? plugin
- remove hard-coded values
- (If you don't like the rotating cube, hack the code yourself,
the variables will come later ! ;)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r421866e |
rc0a1dbe |
|
| 93 | 93 | bool 'X11 support' CONFIG_X11 |
|---|
| 94 | 94 | bool 'XVideo support' CONFIG_XVIDEO |
|---|
| | 95 | bool 'GLX support' CONFIG_GLX |
|---|
| 95 | 96 | bool 'Linux framebuffer support' CONFIG_FB |
|---|
| 96 | 97 | bool 'Linux kernel Matrox support' CONFIG_MGA |
|---|
| rc163444 |
rc0a1dbe |
|
| 2747 | 2747 | fi ]) |
|---|
| 2748 | 2748 | fi |
|---|
| | 2749 | |
|---|
| | 2750 | dnl |
|---|
| | 2751 | dnl GLX module |
|---|
| | 2752 | dnl |
|---|
| | 2753 | AC_ARG_ENABLE(glx, |
|---|
| | 2754 | [ --enable-glx X11 OpenGL (GLX) support (default disabled)]) |
|---|
| | 2755 | if test "${enable_glx}" = "yes" |
|---|
| | 2756 | then |
|---|
| | 2757 | VLC_ADD_PLUGINS([glx]) |
|---|
| | 2758 | VLC_ADD_LDFLAGS([glx],[-lGL -lGLU]) |
|---|
| | 2759 | fi |
|---|
| | 2760 | |
|---|
| 2749 | 2761 | |
|---|
| 2750 | 2762 | dnl |
|---|
| r1e4bfd0 |
rc0a1dbe |
|
| 116 | 116 | double **origy; |
|---|
| 117 | 117 | |
|---|
| 118 | | |
|---|
| | 118 | char *buffer; //XXX |
|---|
| 119 | 119 | |
|---|
| 120 | 120 | int galaktos_init( galaktos_thread_t *p_thread ) |
|---|
| … | … | |
| 128 | 128 | |
|---|
| 129 | 129 | /* Load default preset directory */ |
|---|
| 130 | | loadPresetDir("/home/cyril/.vlc/galaktos"); |
|---|
| 131 | | // loadPresetDir("/etc/projectM/presets"); |
|---|
| | 130 | // loadPresetDir("/home/cyril/.vlc/galaktos"); |
|---|
| | 131 | loadPresetDir("/etc/projectM/presets"); |
|---|
| 132 | 132 | |
|---|
| 133 | 133 | initPCM(maxsamples); |
|---|
| rb45ccdd |
rc0a1dbe |
|
| 38 | 38 | |
|---|
| 39 | 39 | extern int texsize; |
|---|
| | 40 | |
|---|
| | 41 | extern char *buffer; |
|---|
| 40 | 42 | |
|---|
| 41 | 43 | |
|---|
| … | … | |
| 119 | 121 | * screen and copying to a texture before we do normal rendering. |
|---|
| 120 | 122 | */ |
|---|
| | 123 | buffer = malloc(3*texsize*texsize); |
|---|
| 121 | 124 | |
|---|
| 122 | 125 | glBindTexture(GL_TEXTURE_2D, *RenderTargetTextureID); |
|---|
| … | … | |
| 128 | 131 | GL_RGB, |
|---|
| 129 | 132 | GL_UNSIGNED_BYTE, |
|---|
| 130 | | 0); |
|---|
| | 133 | buffer); |
|---|
| 131 | 134 | // } |
|---|
| 132 | 135 | |
|---|