Commit Graph

26 Commits

Author SHA1 Message Date
Martin Pulec
226c17f02d replace all other AC-defined platform macro
Replaced all other autoconf-defined platform macros (HAVE_LINUX and
HAVE_MACOSX, WIN32 already done) with those ones defined by compiler.

Not yet remove the definitions from autoconf, in case someone will use
the old macros anyways. Remove in future.
2024-05-13 12:56:53 +02:00
Martin Pulec
56a6dc78b0 replace remaining WIN32 platform macros
see the commit HEAD@{2}
2024-05-13 12:56:53 +02:00
Martin Pulec
7d5196c610 Syphon: use native GL context
get rid of direct GLUT dependency

+ mac_gl_common.m: fixed copyright + relicense (as the only author)
+ destroy_gl_context - noop for empty (zeroed, not initialized) context
+ GL: attach the context (will be useful later when running at the same
  time Syphon and GL display)
2023-03-29 12:09:38 +02:00
Martin Pulec
f8fc628512 glsl_compile_link: print errors only if failed
Windows logs "No errors." if it succeeds, which doesn't need to be
printed out. Print the log only if either failed orin verbose mode.
2023-03-17 14:11:36 +01:00
Martin Pulec
b39ce112f0 glsl_compile_link: no abort if compile/link fails
Do not abort if compile/link fails but return 0. Some of callers already
expect returning 0 on error.

+ print the errors with ERROR severity to be more obvious in program output
2022-11-11 16:39:26 +01:00
Martin Pulec
1a31999f1a utils/misc: split to misc and macros.h
Some macros are quite common so it is perhaps more wise to use a
separate header.

Also moved ref_count_init_once and ref_count_terminate last to misc.h.
2022-06-06 11:06:06 +02:00
Martin Pulec
d7368b1a4a glsl compilation: print compiled shader if debug 2022-06-06 11:06:06 +02:00
Martin Pulec
65ca72eb24 fixed CIDs 393106-393108 2022-05-20 08:42:46 +02:00
Martin Pulec
e3ee7a24e7 GLSL: compilation, link: check errors 2022-05-06 16:23:57 +02:00
Martin Pulec
299b3387c2 Rewritten OpenGL display to use GLFW 2022-04-20 09:32:53 +02:00
Martin Pulec
887da08822 common_preinit: call glutInit in macOS
Call glutInit for macOS. This is rather a workaround to fix a problem
when running 'uv --capabilities' with RTDXT and Syphon. Initialization
of GLUT in Syphon then fails because glutInit is skipped since NSApp is
a non-NULL (from initialization of GL context). Further GLUT call then
fail.
2020-04-14 19:38:15 +02:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
585abe4bc5 GL: shader compilation improvements
* cleaned the code a bit
* allow only vertex or only fragment shader compilation
2017-06-21 10:12:14 +02:00
Martin Pulec
c16a74d135 MSW: compat
Cleared mainly harmless warnings.
2017-02-15 10:19:12 +01:00
Martin Pulec
4ae17a2085 Created common_preinit() for common setup 2016-01-13 18:11:14 +01:00
Martin Pulec
83c9421b4a Fixed some Coverity issues 2015-10-19 11:31:10 +02:00
Martin Pulec
38b1e12b22 GL context: query GL version 2015-06-11 17:15:57 +02:00
Martin Pulec
6e4db32713 Fixed some OS X warnings 2014-09-30 00:09:04 +02:00
Martin Pulec
f9319b4019 Capabilities listening: show only runable capabs 2014-09-11 12:47:02 +02:00
Martin Pulec
9e8784948c Win32 context: create context in separate thread
Context should be hold in a separate thread because when the thread,
where is the window created, exits DC is automatically destroyed.
2014-01-20 11:06:51 +01:00
Martin Pulec
670640e8d5 SW Mix: added bicubic interpolation 2013-04-05 10:53:26 +02:00
Martin Pulec
66bc5fca60 Added Win32 GLSL modules' support 2013-03-18 14:14:22 +01:00
Martin Pulec
ca84109618 OpenGL context: extended OS X support 2013-03-15 14:59:38 +01:00
Martin Pulec
3035616189 Added SW mix 2013-03-15 10:31:06 +01:00
Martin Pulec
0b1f066d7b RTDXT: release GL context after init
* solves problem when calling compress function from another thread than
  init
2012-09-14 09:37:24 +02:00
Martin Pulec
bb5b84d9ea Restructuralize directory structure
* content of ultragrid/ subdirector moved to root
2012-07-02 18:24:25 +02:00