Commit Graph

18339 Commits

Author SHA1 Message Date
Benau
c8aea0bf9e Add bounding boxes visualization for SP 2017-12-31 10:34:55 +08:00
Benau
cce8abe6f3 Port billboard text 2017-12-30 15:28:04 +08:00
Benau
ec59e3f573 Don't delete vao each frame when update vertex buffer 2017-12-29 23:42:45 +08:00
Benau
63267391ef BufferData with new size vector 2017-12-29 23:26:50 +08:00
Benau
8a93b07c5e Don't clean the current skidmarking 2017-12-29 23:26:29 +08:00
Benau
8919f42894 Use dynamic draw call for rubber band 2017-12-29 19:41:17 +08:00
Benau
d71ea71e35 Remove some ifdef 2017-12-29 18:10:51 +08:00
Benau
711fb8211a Add samuncle way to sample texture slot 2017-12-29 15:39:22 +08:00
Benau
4ad7934a85 Clean sp framebuffer individually 2017-12-29 14:50:15 +08:00
Benau
1e0b611c7d Draw kart shadow with dynamic draw call 2017-12-29 01:36:36 +08:00
Benau
f040be710e Fix normal visualizer 2017-12-29 00:52:29 +08:00
Benau
590850eacf Add dynamic draw call for skidmarks 2017-12-28 16:14:09 +08:00
Ben Krajancic
7c10a5559d Ghost replay selection fix (#3081)
* Label unknown replay makers as "Unknown"

* Language neutral result
2017-12-27 21:08:34 -05:00
Benau
52b19dd83a Use glVertexAttrib only in debug view 2017-12-27 13:50:17 +08:00
Benau
62e0effed6 Rename input variables 2017-12-27 12:31:21 +08:00
Benau
dbc3cd5ff5 Normalize in shader for broken drivers 2017-12-27 11:33:30 +08:00
Benau
891b053358 Add more functions to normal visualizer 2017-12-27 01:33:21 +08:00
Benau
ce45605c18 Use half float for texture matrix 2017-12-26 15:28:01 +08:00
Benau
daf1294e6f Add minimap and adjust unlit shader for it 2017-12-26 14:34:34 +08:00
Deve
87d43063ed Assume that "HandleSRGB == false" means "don't care".
It solves the issue with nvidia when HandleSRGB is set to false.
2017-12-25 23:59:49 +01:00
Benau
7797115867 Add SP for correct normal and easier shader system 2017-12-25 14:00:10 +08:00
Ben Krajancic
c35599f3e2 Flashing bubble gum (#3080)
* Initial Implementation

* Name values to give meaning
2017-12-22 19:06:24 -05:00
Deve
31f8b7ec35 Allow to install debug version without uninstalling release version on android 2017-12-22 21:51:41 +01:00
Deve
6f6ac84495 Fixed android compilation 2017-12-22 21:02:37 +01:00
Deve
2b8737a75b Remove known issues from android readme.
We can use github issues for it.
2017-12-12 23:07:01 +01:00
Benau
a55e7d204a Fix wrong newline in linux terminal 2017-12-11 11:00:06 +08:00
Benau
dc562103c5 Remove wrong commit 2017-12-10 00:12:35 +08:00
Benau
f70af4677c Add direct conversion to map for xml nodes 2017-12-09 16:06:43 +08:00
hiker
eea6196231 Merge branch 'buffer-log-messages' 2017-12-07 09:43:56 +11:00
hiker
ebcab8d4e0 Fixed compiler warning. 2017-12-07 09:43:27 +11:00
hiker
5b296b08f9 Merge remote-tracking branch 'origin/master' 2017-12-07 09:43:09 +11:00
hiker
2810d2ad7d Merge remote-tracking branch 'origin/master' into buffer-log-messages 2017-12-07 09:39:29 +11:00
hiker
55d0df7bad Added option to buffer log messages (which can reduce debug output
overhead).
2017-12-04 11:32:09 +11:00
auria.mg
1afb62c97d Bring back the ability to skip the unlock cutscense, fixes #3069 2017-12-03 18:44:50 -05:00
Benau
d9937d7b33 Fix physical object from meta library 2017-12-03 23:58:17 +08:00
hiker
7744b056ea Merge branch 'master' of github.com:supertuxkart/stk-code 2017-12-04 00:41:28 +11:00
Benau
7ab8477a53 Reserve onReset of scripting method for library nodes (unused atm) 2017-12-02 15:24:36 +08:00
Benau
3607c7d520 Adjust irrlicht CSkinnedMesh class for .spm
The last frame in .spm is usable
2017-12-02 15:24:05 +08:00
Benau
2161efd9c4 Allow configure animation set through scripting 2017-12-02 02:36:43 +08:00
Benau
60a3890c78 Add support for meta library objects 2017-12-01 13:59:00 +08:00
hiker
3093803762 Add support for a 'prefix' to be printed for all log messages. 2017-11-30 17:49:45 +11:00
hiker
4f5b4aed0b Change the bld directories to be looked for to all include -64; changed
name of installer and only include 64-bit redistributable.
2017-11-30 17:48:34 +11:00
hiker
ae57be8f3b Changed version number to be git, added 32bit to installer name, and only include
the 32 bit redistributable.
2017-11-30 17:47:24 +11:00
auria.mg
48aded5f6d Login screen : proper post-login redirection 2017-11-27 18:07:42 -05:00
auria.mg
579a4aa3cc Improve the way to enable/disable the networking menu, use the --online switch that previously existed 2017-11-26 21:54:48 -05:00
auria.mg
4f528c258d Disable new networking menus, will be enabled back in the networking branch 2017-11-26 21:48:45 -05:00
auria.mg
d92476ae70 First implementation prototype of the new netwoking UI, as discussed. 2017-11-25 18:51:49 -05:00
Rémi Verschelde
2a093cde0a GLEW: Update to pristine upstream 2.1.0
Previous version was a modified GLEW 1.11.0 (2014). The STK modifications meant
to address https://sourceforge.net/p/glew/patches/40/ which is now fixed since
GLEW 2.0.0.

Here's the diff between pristine 1.11.0 and STK's version before this patch:
```diff
diff --git a/lib/glew/src/glew.c b/lib/glew/src/glew.c
index a78f14e1e..f8df0d758 100644
--- a/lib/glew/src/glew.c
+++ b/lib/glew/src/glew.c
@@ -296,30 +296,6 @@ static GLboolean _glewStrSame3 (GLubyte** a, GLuint* na, const GLubyte* b, GLuin
   return GL_FALSE;
 }

-#include <string.h>
-#include <stdlib.h>
-
-/* A simple open addressing hashset for extensions on OpenGL 3+. */
-static const char ** ext_hashset = NULL;
-size_t ext_hashset_size = 0;
-
-static unsigned hash_string(const char * key)
-{
-  unsigned hash = 0;
-  unsigned i = 0;
-  for (; i < strlen(key); ++i)
-  {
-    hash += key[i];
-    hash += (hash << 10);
-    hash ^= (hash >> 6);
-  }
-  hash += (hash << 3);
-  hash ^= (hash >> 11);
-  hash += (hash << 15);
-
-  return hash;
-}
-
 /*
  * Search for name in the extensions string. Use of strstr()
  * is not sufficient because extension names can be prefixes of
@@ -328,37 +304,14 @@ static unsigned hash_string(const char * key)
  */
 static GLboolean _glewSearchExtension (const char* name, const GLubyte *start, const GLubyte *end)
 {
-  if (ext_hashset != NULL)
+  const GLubyte* p;
+  GLuint len = _glewStrLen((const GLubyte*)name);
+  p = start;
+  while (p < end)
   {
-    unsigned hash = hash_string(name);
-
-    /*
-     * As the hashset is bigger than the number of extensions
-     * this will eventually break.
-     */
-    while(1)
-    {
-        unsigned index = hash % ext_hashset_size;
-        if (ext_hashset[index] == NULL)
-            break;
-
-        if (!strcmp(ext_hashset[index], name))
-            return GL_TRUE;
-
-        hash++;
-    }
-  }
-  else
-  {
-    const GLubyte* p;
-    GLuint len = _glewStrLen((const GLubyte*)name);
-    p = start;
-    while (p < end)
-    {
-      GLuint n = _glewStrCLen(p, ' ');
-      if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE;
-      p += n+1;
-    }
+    GLuint n = _glewStrCLen(p, ' ');
+    if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE;
+    p += n+1;
   }
   return GL_FALSE;
 }
@@ -10099,13 +10052,9 @@ static GLboolean _glewInit_GL_WIN_swap_hint (GLEW_CONTEXT_ARG_DEF_INIT)
 /* ------------------------------------------------------------------------- */

 GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
-{
+{
   const GLubyte* start;
   const GLubyte* end;
-
-  if (ext_hashset != NULL)
-      return _glewSearchExtension(name, NULL, NULL);
-
   start = (const GLubyte*)glGetString(GL_EXTENSIONS);
   if (start == 0)
     return GL_FALSE;
@@ -10165,39 +10114,9 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
     GLEW_VERSION_1_2   = GLEW_VERSION_1_2_1 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
     GLEW_VERSION_1_1   = GLEW_VERSION_1_2   == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
   }
-
-  if (major >= 3) /* glGetString method is deprecated */
-  {
-    GLint n, i;
-    glGetIntegerv(GL_NUM_EXTENSIONS, &n);
-    glGetStringi = (PFNGLGETSTRINGIPROC)glewGetProcAddress((const GLubyte*)"glGetStringi");
-
-    free(ext_hashset); /* In case we get called a second time. */
-
-    ext_hashset_size = (n * 3) / 2;
-    ext_hashset = calloc(ext_hashset_size, sizeof(const char *));
-    for (i = 0; i < n; ++i)
-    {
-      const char * extension;
-      unsigned hash;
-
-      extension = (const char *)glGetStringi(GL_EXTENSIONS, i);
-      hash = hash_string(extension);
-
-      while(ext_hashset[hash % ext_hashset_size] != NULL)
-        hash++;
-
-      ext_hashset[hash % ext_hashset_size] = extension;
-    }
-
-    extStart = 0;
-  }
-  else
-  {
-    /* query opengl extensions string */
-    extStart = glGetString(GL_EXTENSIONS);
-  }

+  /* query opengl extensions string */
+  extStart = glGetString(GL_EXTENSIONS);
   if (extStart == 0)
     extStart = (const GLubyte*)"";
   extEnd = extStart + _glewStrLen(extStart);
@@ -14064,9 +13983,6 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST)
   GLXEW_VERSION_1_2 = GL_TRUE;
   GLXEW_VERSION_1_3 = GL_TRUE;
   GLXEW_VERSION_1_4 = GL_TRUE;
-  /* Check if GLX display is available */
-  if (glXGetCurrentDisplay == NULL || glXGetCurrentDisplay() == NULL)
-    return GLEW_OK;
   /* query GLX version */
   glXQueryVersion(glXGetCurrentDisplay(), &major, &minor);
   if (major == 1 && minor <= 3)
```
2017-11-22 12:04:46 +01:00
Rémi Verschelde
e3264d1de3 CMake: Add option to use system GLEW 2.0+
The option is enabled by default, but the system version will only be used
if found and newer than 2.0.0 (to ensure that https://sourceforge.net/p/glew/patches/40/
is fixed). When missing, we silently fallback to the vendored source code,
so there is no change for e.g. Windows compilation.
2017-11-22 11:54:38 +01:00
auria.mg
c59af9136c Merge branch 'KartPerGamemode'
# Conflicts:
#	src/states_screens/gp_info_screen.cpp
2017-11-21 19:20:49 -05:00