Thanks David, that's very kind.

On Friday, August 7, 2015 at 2:01:25 AM UTC+1, davidcb wrote:
>
> The files are located at: 
> http://www.dcbcyber.com/tmp/src.tar.gz 
> or 
> http://www.dcbcyber.com/tmp/src.zip 
>
> Originally this did more than what you are asking for. I had Bullet 
> physics doing ray casting and collision detection and OpenAL playing 
> sounds. I also had two rooms connected by a corridor. Unfortunately I seem 
> to have lost my media files that I created. Without drawing the meshes it 
> should still load up and draw a cross hair in the middle of the screen. I 
> also included a line you can uncomment that should turn the cross hair into 
> a triangle. 
>
> I commented out the code for physics, sound, world loading, and input and 
> movement. Feel free to play with that stuff if you feel like it. 
>
> The code is messy. I never got around to cleaning up or finishing. 
>
> If it doesn't work let me know. I will help as much as I can. I no longer 
> have a Beagleboard. I don't have a BBB but I might get one. I do have a 
> Pandaboard which is similar. 
>
> David. 
> -------------------------------------------- 
> On Thu, 8/6/15, John London <[email protected] 
> <javascript:>> wrote: 
>
>  Subject: Re: [beagleboard] OpenGL and BBB - simple HelloTriangle example 
>  To: "BeagleBoard" <[email protected] <javascript:>> 
>  Cc: [email protected] <javascript:> 
>  Date: Thursday, August 6, 2015, 11:09 AM 
>   
>  David, thank 
>  you very much indeed, that would be extremely 
>  helpful! 
>   
>   
>  On Thursday, August 6, 2015 at 3:05:27 PM 
>  UTC+1, davidcb wrote:  At home I have a very 
>  simple program I wrote for the Beagleboard that does what 
>  you are trying to do. I think it should compile for the BBB 
>  fairly easily. When I get home later this evening I can find 
>  it and send it to you.   
>   
>   
>       On Thursday, August 
>  6, 2015 8:18 AM, John London <john....@ 
>  blackkitetechnology.com> wrote: 
>       
>   
>   
>  I'm trying to get a simple example (Hello Triangle) 
>  working with BBB running Debian.  I do NOT want to run the 
>  example under X11 - I want to run it from the command line. 
>   I do not want to use GLUT; I think this means it uses the 
>  framebuffer.  Is this possible and does anyone have an 
>  example of how to do this please? 
>   
>  I have been trying to use the example below, 
>  taken directly from the Examples directory of the PowerVR 
>  SDK.  When I run the compiled program, I get an 
>  error: 
>  libEGL 
>  warning: DRI2: xcb_connect failed 
>  libEGL warning: DRI2: xcb_connect failed 
>  Failed to initialise the EGLDisplay 
>  Is the code trying to make a connection to X11 
>  perhaps? 
>  I am using the Makefile and code below. 
>   
>  # 
>  # File 
>  Makefile 
>  # Title Makes the 
>  demo 
>  # Author 
>  PowerVR 
>  # 
>  # Copyright 
>  Copyright (C) by Imagination Technologies 
>  Limited. 
>  # 
>   
>   
>  .PHONY: clean 
>   
>   
>  SDKDIR  = $(shell cd ../../../../../.. && pwd) 
>  VPATH = ../.. 
>   
>   
>  CROSS_COMPILE ?= arm-linux-gnueabihf- 
>   
>   
>  ifdef TOOLCHAIN 
>  PLAT_CC  = $(TOOLCHAIN)/bin/$(CROSS_ COMPILE)gcc 
>  PLAT_CPP = $(TOOLCHAIN)/bin/$(CROSS_ COMPILE)g++ 
>  PLAT_AR  = $(TOOLCHAIN)/bin/$(CROSS_ COMPILE)ar 
>  else 
>  PLAT_CC  = $(CROSS_COMPILE)gcc 
>  PLAT_CPP = $(CROSS_COMPILE)g++ 
>  PLAT_AR  = $(CROSS_COMPILE)ar 
>  endif 
>   
>   
>  ifeq "$(X11BUILD)" "1" 
>  ifndef X11ROOT 
>  $(error When building an X11 BUILD you must 
>  set X11ROOT to point at the location 
>  where your X11 headers and libs can be found.) 
>  endif 
>  ifeq "$(EWSBUILD)" "1" 
>  $(error Cannot have both X11BUILD and EWSBUILD enabled at the same 
>  time) 
>  endif 
>  WS_LIBS = -L$(X11ROOT)/lib -lX11 -lXau -ldl 
>  WS_RPATH = $(X11ROOT)/lib 
>  WS_INC  = $(X11ROOT)/include 
>  WS = X11 
>  else 
>  ifeq "$(EWSBUILD)" "1" 
>  PLAT_CFLAGS += -DEWS 
>  WS_LIBS = -lews 
>  WS_INC = 
>  WS=EWS 
>  else 
>  ifeq "$(DRMBUILD)" "1" 
>  ifndef DRMROOT 
>  $(error When building a DRM BUILD you must 
>  set DRMROOT to point at the location 
>  where your DRM headers and libs can be found.) 
>  endif 
>  WS_LIBS = -L$(DRMROOT)/lib -ldrm -lgbm -ludev -ldl 
> -Wl,--rpath-link,$(DRMROOT)/li b 
>  WS_INC = $(DRMROOT)/include $(DRMROOT)/include/libdrm 
> $(DRMROOT)/include/gbm 
>  WS=DRM 
>  else 
>  WS_LIBS = 
>  WS_INC  = 
>  WS = NullWS 
>  endif 
>  endif 
>  endif 
>   
>   
>  LIBDIR ?= $(SDKDIR)/Builds/Linux/armv7hf /Lib 
>  LIBDIR_FLAGS = -L$(LIBDIR) -Wl,--rpath-link,$(LIBDIR):$(W S_RPATH) 
>   
>   
>  ifdef Debug 
>  DEBUG_RELEASE = Debug 
>  PLAT_CFLAGS   += -g 
>  else 
>  DEBUG_RELEASE = Release 
>  PLAT_CFLAGS   += -O2 
>  endif 
>   
>   
>  PLAT_CFLAGS += -Wall -march=armv7 -mfloat-abi=hard 
>  PLAT_INC  = $(SDKDIR)/Builds/Include $(WS_INC) 
>   
>   
>  PLAT_OBJPATH = $(DEBUG_RELEASE)$(WS) 
>  PLAT_LINK = $(LIBDIR_FLAGS) -lEGL -lGLESv2 $(WS_LIBS) -L$(TOOLCHAIN)/lib 
> -march=armv7 -mfloat-abi=hard 
>   
>   
>  ifeq "$(WS)" "X11" 
>  SRCNAME = OGLES2HelloAPI_LinuxX11 
>  else 
>  ifeq "$(WS)" "EWS" 
>  SRCNAME = OGLES2HelloAPI_EWS 
>  else 
>  ifeq "$(WS)" "DRM" 
>  SRCNAME = OGLES2HelloAPI_LinuxDRM 
>  else 
>  SRCNAME = OGLES2HelloAPI_NullWS 
>  endif 
>  endif 
>  endif 
>   
>   
>  OUTNAME = OGLES2HelloAPI 
>   
>   
>  OBJECTS = $(PLAT_OBJPATH)/$(SRCNAME).o 
>   
>   
>  COMMON_INCLUDES = $(addprefix - 
>   ... 
>   
>   
>   
>  -- 
>   
>  For more options, visit http://beagleboard.org/discuss 
>   
>  --- 
>   
>  You received this message because you are subscribed to the 
>  Google Groups "BeagleBoard" group. 
>   
>  To unsubscribe from this group and stop receiving emails 
>  from it, send an email to [email protected] <javascript:>. 
>   
>  For more options, visit https://groups.google.com/d/optout. 
>   
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to