Browse Source

OSMesa16 updates (Eric Plante), added _mesa_strtof()

tags/vtx-0-2-21112003-freeze
Brian Paul 23 years ago
parent
commit
4097ea012a
2 changed files with 23 additions and 9 deletions
  1. 12
    8
      src/mesa/main/Makefile.OSMesa16
  2. 11
    1
      src/mesa/main/imports.h

+ 12
- 8
src/mesa/main/Makefile.OSMesa16 View File

@@ -1,7 +1,7 @@
# $Id: Makefile.OSMesa16,v 1.9 2002/10/25 13:50:48 brianp Exp $
# $Id: Makefile.OSMesa16,v 1.10 2003/01/14 03:00:55 brianp Exp $

# Mesa 3-D graphics library
# Version: 4.1
# Version: 5.0
# Copyright (C) 1995-2002 Brian Paul

# Makefile for building Mesa for 16/32-bit/channel rendering with the OSMesa
@@ -11,7 +11,7 @@
##### MACROS #####

GL_MAJOR = 1
GL_MINOR = 2
GL_MINOR = 4
GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)

VPATH = RCS
@@ -22,6 +22,7 @@ LIBDIR = ../lib


CORE_SOURCES = \
api_arrayelt.c \
api_loopback.c \
api_noop.c \
api_validate.c \
@@ -70,6 +71,9 @@ CORE_SOURCES = \
texstore.c \
texutil.c \
varray.c \
vpexec.c \
vpparse.c \
vpstate.c \
vtxfmt.c \
X86/x86.c \
X86/common_x86.c \
@@ -77,13 +81,11 @@ CORE_SOURCES = \
X86/sse.c \
math/m_debug_clip.c \
math/m_debug_norm.c \
math/m_debug_vertex.c \
math/m_debug_xform.c \
math/m_eval.c \
math/m_matrix.c \
math/m_translate.c \
math/m_vector.c \
math/m_vertices.c \
math/m_xform.c \
array_cache/ac_context.c \
array_cache/ac_import.c \
@@ -135,6 +137,7 @@ CORE_SOURCES = \
tnl/t_vb_light.c \
tnl/t_vb_normals.c \
tnl/t_vb_points.c \
tnl/t_vb_program.c \
tnl/t_vb_render.c \
tnl/t_vb_texgen.c \
tnl/t_vb_texmat.c \
@@ -177,8 +180,9 @@ X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
./X86/gen_matypes > X86/matypes.h
rm -f X86/gen_matypes X86/*.o

$(ASM_SOURCES): X86/matypes.h

# We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
# is empty we don't get an invalid Makefile.
$(ASM_SOURCES) X86/matypes.h: X86/matypes.h


##### TARGETS #####
@@ -187,7 +191,7 @@ $(ASM_SOURCES): X86/matypes.h
# @echo "Specify a target configuration"

clean:
-rm *.o *~ */*.o */*~ *.lo *.la
-rm -f *.o *~ */*.o */*~ *.lo *.la
-rm -rf .libs

targets: $(LIBDIR)/$(OSMESA16_LIB)

+ 11
- 1
src/mesa/main/imports.h View File

@@ -1,4 +1,4 @@
/* $Id: imports.h,v 1.9 2002/12/06 03:10:59 brianp Exp $ */
/* $Id: imports.h,v 1.10 2003/01/14 03:00:54 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -49,6 +49,10 @@

#define MEMCPY( DST, SRC, BYTES) _mesa_memcpy(DST, SRC, BYTES)
#define MEMSET( DST, VAL, N ) _mesa_memset(DST, VAL, N)
extern void _mesa_memset16( GLushort *dst, GLushort val, size_t n );

#define MEMSET16( DST, VAL, N ) \
_mesa_memset16( (GLushort *) (DST), (GLushort) (VAL), (size_t) (N) )


/* MACs and BeOS don't support static larger than 32kb, so... */
@@ -163,9 +167,15 @@ _mesa_strcmp( const char *s1, const char *s2 );
extern int
_mesa_strncmp( const char *s1, const char *s2, size_t n );

extern char *
_mesa_strdup( const char *s );

extern int
_mesa_atoi( const char *s );

extern float
_mesa_strtof( const char *s, const char **end );

extern int
_mesa_sprintf( char *str, const char *fmt, ... );


Loading…
Cancel
Save