6

Hi there I'm having problems as stated with CCScrollLayer in the lateste cocos2d beta, mainly that on compiling I get: use of undeclared identifier 'CC_GL_BLEND'. Is there any way to sort this problem that anyone has found yet?

Guru
  • 21,652
  • 10
  • 63
  • 102
simonthumper
  • 1,834
  • 2
  • 22
  • 44

1 Answers1

4

Safely you can comment that line..anyway blending is already enabled...and everything works fine after this change in cocos2D 2.1 beta.

// Set GL Values
#if COCOS2D_VERSION >= 0x00020000
      //  ccGLEnable(CC_GL_BLEND); //Guru
        ccPointSize( 6.0 * CC_CONTENT_SCALE_FACTOR() );
#define DRAW_4B_FUNC ccDrawColor4B

#else
        glEnable(GL_POINT_SMOOTH);
        GLboolean blendWasEnabled = glIsEnabled( GL_BLEND );
        glEnable(GL_BLEND);
Guru
  • 21,652
  • 10
  • 63
  • 102
  • Hmmmmm that gets rid of the error, however it doesn't make CCScrollLayer actually work ;) screen dots aren't appearing and can't scroll the layers... – simonthumper Oct 20 '12 at 12:58
  • 1
    Yeah you're right.. I was just being stupid and not setting z:2 ;) Out of interest what do the page indicators look like for you? they're square for me, however I've seen them as little glowing dots on tutorials... – simonthumper Oct 20 '12 at 14:50
  • you can remove that page indication dots...showPagesIndicator = NO. – Guru Oct 20 '12 at 14:59
  • Yeah I got that :) more interested in having some nice looking dots though ;) – simonthumper Oct 20 '12 at 15:05